I noticed that my tests are run in the www.example.com domain. I'm
using rspec and capybara, so `visit sports_url` tries to visit
www.example.com/sports. This works fine with the default test driver,
but I have some javascript that I need to test. These tests fail
because the browser tries to access www.example.com/sports (which
obviously doesn't exist). The browser is used by the selenium driver
of capybara to test javascript. If I use `visit sports_path` the
local web server is access with both the standard and selenium

Should I be configuring the test environment somehow to NOT be running
as www.example.com? Or am I testing in the wrong way?


You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
postedMar 14, '12 at 10:00p
activeMar 14, '12 at 10:00p

1 user in discussion

Tyler DeWitt: 1 post



site design / logo © 2021 Grokbase