Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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: jnicklas/capybara#525
  • Loading branch information...
commit 70c23015eb410559f43f374420f5fa3e0b19ceb5 1 parent 8ed140d
@boringusername99 boringusername99 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -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")
end
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.