[rspec-users] :render expects possible?

Edward Ocampo-Gooding edward.og at gmail.com
Wed Aug 1 14:43:23 EDT 2007


Hi,

Is it possible to do the following in a controller spec?

   @controller.should_receive(:render).with(:layout => false)

I've been trying this kind of thing and it looks like RSpec is messing 
with the render calls, and requires you to use render_template instead.

Could we have at least a warning that mentions that parameters passed to 
:render expectations are going to be thrown away and mention an 
alternative way of spec-ing this behaviour?

Thanks,
Edward


More information about the rspec-users mailing list