[rspec-users] expect_render not?

David Chelimsky dchelimsky at gmail.com
Mon Aug 13 09:06:25 EDT 2007


On 8/13/07, Jonathan Linowes <jonathan at parkerhill.com> wrote:
> hi, I have a template that conditionally renders a partial. Is there
> a way to test that a partial is NOT rendered?
> :)

template.should_render(:partial =>
'/partial/that/should/not/get/rendered').never

>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list