[rspec-users] problem with rspec_on_rails and @controller.should_receive(:render) in trunk
Marcus Ahnve
marcus at ahnve.com
Thu Apr 19 02:35:32 EDT 2007
On 4/18/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> [...]
> FYI - Chris says the error is:
>
> <UsersController:0x323fe94> expected :render with ({:layout=>false})
> but received it with (no args)
I am seeing this as well.
I am running a spec like:
it "should use application layout" do
@controller.should_receive(:render).with(:layout => "/layouts/application")
get 'index'
end
If I change the spec to fail on purpose by for example changing the
expected layout name, I get the correct behaviour. The 'no args' thing
appears when the spec passes.
/Marcus
More information about the rspec-users
mailing list