diff --git a/spec/support/api_helper.rb b/spec/support/api_helper.rb index 582f7ea341..2dd217117d 100644 --- a/spec/support/api_helper.rb +++ b/spec/support/api_helper.rb @@ -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)