Skip to content

Commit

Permalink
Merge pull request teamcapybara#1417 from phillbaker/fix-hardcoded-te…
Browse files Browse the repository at this point in the history
…st-host

Replace hardcoded `localhost` in spec helper
  • Loading branch information
twalpole committed Oct 13, 2014
2 parents dc07b69 + d9bb8ce commit 38389e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/spec/session/visit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@session.visit('/foo/bar')
root_uri = URI.parse(@session.current_url)

@session.visit("http://localhost:#{root_uri.port}")
@session.visit("http://#{root_uri.host}:#{root_uri.port}")
expect(@session).to have_content('Hello world!')
end

Expand Down

0 comments on commit 38389e2

Please sign in to comment.