diff --git a/spec/support/api_helper.rb b/spec/support/api_helper.rb index 03e2e79edb..9ac5c7a1cb 100644 --- a/spec/support/api_helper.rb +++ b/spec/support/api_helper.rb @@ -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