mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Merge pull request #7066 from luisramos0/legacy_user
Remove dead current_api_user helper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user