No idea why this is not working:
describe "stub_model(Food) with a hash of stubs" do
let(:food) do
stub_model Food
end
it "edit action should render edit template" do
get :edit, :id => food
response.should render_template(:edit)
end
Says cannot find a food by id=.... I hard code the id and it still does not
work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/rspec-users/attachments/20110523/e49ad038/attachment.html>