[rspec-users] Writing a matcher that accepts a block
abhikp at gmail.com
Wed Jan 5 12:11:27 EST 2011
I'm trying to emulate the have_tag matcher that used to be in rspec-rails.
How would I do that with the rspec 2 interface?
html.should have_tag("div") do
RSpec::Matchers.define won't let me pass in a block. I could extend the
RSpec::Matchers module but I'm not sure if that's the way to do it anymore.
Any guidance would be helpful!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users