Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Readme update for Capybara syntax #479

Merged
merged 1 commit into from

2 participants

@jwow313

Capybara uses :text, not :content as the option to have_selector. Anything passed via :content is ignored entirely, leading to lots of incorrectly passing tests. The docs should probably reflect this, as this is pretty confusing. See this Capybara issue for more details: jnicklas/capybara#525

@jwow313 jwow313 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
70c2301
@justinko justinko merged commit 7616042 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2012
  1. @jwow313

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

    jwow313 authored
    …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
This page is out of date. Refresh to see the latest.
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
```
Something went wrong with that request. Please try again.