[rspec-users] using rspec to verify an xpath (via capybara/cucumber)
Patrick J. Collins
patrick at collinatorstudios.com
Tue Sep 20 17:45:17 EDT 2011
I am doing:
page.should have_xpath("//img[contains(@class, 'foobar')]", :count => 0)
but cucumber tells me:
expected xpath "//img[contains(@class, 'foobar')]" to return something
(RSpec::Expectations::ExpectationNotMetError)
... Shouldn't this be returning true/false ?
Patrick J. Collins
http://collinatorstudios.com
More information about the rspec-users
mailing list