Merge pull request #7066 from luisramos0/legacy_user

Remove dead current_api_user helper
This commit is contained in:
Andy Brett
2021-03-13 11:17:05 -08:00
committed by GitHub

View File

@@ -14,10 +14,6 @@ module OpenFoodNetwork
end
end
def current_api_user
@current_api_user ||= Spree::LegacyUser.new(email: "ofn@example.com", enterprises: [])
end
def assert_unauthorized!
expect(json_response).to eq("error" => "You are not authorized to perform that action.")
expect(response.status).to eq 401