describe "grams#destroy action" do it "should return a 404 error if gram with the specified id cannot be found" do user = FactoryBot.create(:user) sign_in user delete :destroy, params: { id: 'GHOST' } expect(response).to have_http_status(:not_found) end end