[rspec-users] rspec 1.0.x and liquid?
win at wincent.com
Tue Jun 12 08:53:57 EDT 2007
El 12/6/2007, a las 13:51, David Chelimsky escribió:
> Yeah - there was a time when RSpec supported should_render before or
> after the action. This was an attempt to make things more 'mockish',
> which was cool, but the code was bloody invasive (lots of rails
> monkey patching) and kept breaking every time there was a new
> changeset committed to Rails Edge. So we (I) gave it up and now these
> only work after the action.
> Perhaps we should alias it with have_rendered:
> response.should have_rendered('some/template')
I think that's an excellent idea. Much less scope for confusion.
More information about the rspec-users