Skip to content

3.1.0 -> 3.2.0 breaks url generation #1313

Closed
@97jaz

Description

@97jaz

When I updated from rspec-rails 3.1.0 to 3.2.0, url generation (as in, url_for) broke. I get errors like:

ActionView::Template::Error: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
from /[...]/[...]/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/http/url.rb:45:in `full_url_for'

I am not setting default_url_options. I could do so, but the point is that the code works fine with the previous version of rspec-rails, and it breaks with the new one.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions