[rspec-users] template.expect_render 'failure'

David Chelimsky dchelimsky at gmail.com
Fri Feb 8 11:34:26 EST 2008


On Feb 8, 2008 9:23 AM, Kevin Barnes <lists at ruby-forum.com> wrote:
> I keep having problems w/ expect_render, mainly that it doesn't work as
> advertised. I can put a template.expect_render(:partial => 'this should
> fail') in a view spec and I get no failure. I have read the docs, I have
> followed the threads (two, which never resolve the initial issue and
> dissolve into some other discussion) without much explanation for what
> I'm experiencing. This has manifested itself in both 1.1.3 and 1.1.2
> releases. I do use mocha mocking. So as a last resort I turned that off
> and expect_render still 'fails silently'. (I've also seen the failure in
> Rails 2.0.2 and 1.2.5 if that helps.

Code please.

>
> I'm at a loss at how to continue debugging the issue. Any suggestions?
>
> Thanks,
> Kevin
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list