[rspec-users] Step tables

Juanma Cervera lists at ruby-forum.com
Thu Jan 15 17:57:24 EST 2009


Can somebody confirm that the have_selector method yields to the block?
In all the test I have done it seems it does not work.

I even have try an step like this

when /whatever ..../ do
  response.should have_selector("table > tr:nth-child(#{2}) >
td:nth-child(#{1})") { |td|
  td.inner_text.should == cell
  "foo".should == "bar"     # I think this would fail no?
 }
end

but the step pass without failing.




-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list