mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix basic node spec
This commit is contained in:
parent
ad7ba7b643
commit
46f0761aa9
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ describe Capybara do
|
|||
Capybara.add_selector :lifeform do
|
||||
xpath { |name| "//option[contains(.,'#{name}')]" }
|
||||
end
|
||||
string.should have_selector(:page)
|
||||
string.should_not have_selector(:'does-not-exist')
|
||||
string.should have_selector(:id, "page")
|
||||
string.should_not have_selector(:id, 'does-not-exist')
|
||||
string.should have_selector(:lifeform, "Monkey")
|
||||
string.should_not have_selector(:lifeform, "Gorilla")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue