Displaying 1 result from an estimated 1 matches for "coupon_1008".
2008 Jan 23
18
Not seeing the failure
...xpectedName,:amount=>@expectedAmount}}
end
Here''s the controller method:
def save_coupon
coupon = Coupon.new(params[:coupon])
coupon.user = current_user
coupon.save
redirect_to_index "Coupon Added!"
end
And, I get the following failure:
Mock ''Coupon_1008'' received unexpected message :user= with (#<User:0x221a3e8
@name="User_1009">)
I''m sure that I''m missing something very simple, but I''ve been staring at it
for too long.
(also, if anyone has commented on my style, please feel free to mention it,...