From 12d5120629a7649c070c5d1dae9fea8570e25769 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 11 Mar 2021 00:40:51 +0000 Subject: [PATCH] Remove dead current_api_user helper --- spec/support/api_helper.rb | 4 ---- 1 file changed, 4 deletions(-) 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