Displaying 1 result from an estimated 1 matches for "awardingbody_1193".
2008 Oct 09
1
About received unexpected message :code with (no args)
...'params''}).and_return(mock_awarding_body(:save => true))
post :create, :awarding_body => {:these => ''params''}
assigns(:awarding_body).should equal(mock_awarding_body)
end
After i execute the example, below error occurs:
Mock ''AwardingBody_1193'' received unexpected message :code with (no
args)
how to deal with it?
--
Posted via http://www.ruby-forum.com/.