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.
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
