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/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users