andreo-FdlSlcb4kYpknbxzx/v8hQ@public.gmane.org
2013-Jul-23 17:23 UTC
capybara tests always returning true
Hi guys, I am using a test setup with rspec (2.8.0) , capybara (2.0.2), selenium-webdriver (2.27.2), rails 3.0.20 and ruby 1.8.7 My problem is that every request test I have doing something like: page.should have_content("random string") is returning always true, even though the page has no random string. I have tried changing the driver for js that capybara uses from selenium to rack_test, but I dont even run the test with the js => true option. But I saw on some post that it could help. but it did not. I am feeling a little lost since everytime I found a post with a similar problem it was do to some other gem. But I am working in a big project and can''t really uninstall and reinstall a gem one by one, to see this. Anybody has experienced the same? all the best, Andre -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fbb67fdd-9ec1-4006-8e8d-c4a8effa335e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.