Displaying 1 result from an estimated 1 matches for "errof".
Did you mean:
error
2008 Oct 09
1
When i use rspec(with built-in mock framework) ,errof occurs
I use rspec_scaffold generate a example as below:
it "should expose a newly created awarding_body as @awarding_body"
do
AwardingBody.should_receive(:new).with(:these
=>''params'').and_return(mock_awarding_body(:save
=> true))
post :create, :awarding_body => {:these => ''params''}