Remove dead current_api_user helper

This commit is contained in:
Luis Ramos
2021-03-11 00:40:51 +00:00
parent 41adacbffb
commit 12d5120629

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