[rspec-users] template.expect_render 'failure'

Kevin Barnes lists at ruby-forum.com
Fri Feb 8 10:23:13 EST 2008

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.

I'm at a loss at how to continue debugging the issue. Any suggestions?

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list