> Another attack.
>
> Then("two nested divs and an? $type will be displayed") do | type |
>
> response.should have_tag("div") do
> with_tag("div")
> end
> response.should have_tag(type == 'image' ? 'img' : type)
> end
>
Thanks for the cool idea Rick, but unfortunately that only helps with
my contrived little example -
for my real app I really do need to be able to factor out some helper
methods...
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users