Transpec spec/support/api_helper.rb

This commit is contained in:
luisramos0
2019-07-23 13:50:54 +01:00
parent a3c179bd3f
commit 96ce4deb45

View File

@@ -17,8 +17,8 @@ module OpenFoodNetwork
end
def assert_unauthorized!
json_response.should == { "error" => "You are not authorized to perform that action." }
response.status.should == 401
expect(json_response).to eq("error" => "You are not authorized to perform that action.")
expect(response.status).to eq 401
end
def image(filename)