Browse files

Capybara uses :text, not :content as the option to have_selector. Any…

…thing passed via :content is ignored entirely, leading to lots of incorrectly passing tests. The docs should reflect this, as this is pretty confusing. See this Capybara issue for more details: teamcapybara/capybara#525
  • Loading branch information...
boringusername99 committed Jan 9, 2012
1 parent 8ed140d commit 70c23015eb410559f43f374420f5fa3e0b19ceb5
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -136,7 +136,7 @@ describe "home page" do
fill_in "Password", :with => "secret"
click_buton "Log in"
- page.should have_selector(".header .username", :content => "jdoe")
+ page.should have_selector(".header .username", :text => "jdoe")

0 comments on commit 70c2301

Please sign in to comment.