You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it"..."douser=create(:user)foo=instance_double(Foo)foo_id="123"allow(controller).toreceive(:current_user).and_return(user)expect(user.foos).toreceive(:find).with(foo_id).and_return(foo)expect(foo).toreceive(:destroy).and_return(false)sign_in(user)delete:destroy,id: foo_idexpect(flash[:error]).toeq("There was an error.")end
The text was updated successfully, but these errors were encountered:
E.g.
The text was updated successfully, but these errors were encountered: