From f4116beee589e85814c876826c4c2c58b8a66ffc Mon Sep 17 00:00:00 2001 From: Gabe Ochoa Date: Sat, 17 Mar 2018 12:10:09 -0400 Subject: [PATCH] Fixing up squarespace import test --- spec/tasks/orders/import_orders_from_squarespace_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/tasks/orders/import_orders_from_squarespace_spec.rb b/spec/tasks/orders/import_orders_from_squarespace_spec.rb index 53c094b..4b8305f 100644 --- a/spec/tasks/orders/import_orders_from_squarespace_spec.rb +++ b/spec/tasks/orders/import_orders_from_squarespace_spec.rb @@ -9,6 +9,7 @@ context 'from squarespace' do it 'import all pendings orders' do + ENV['SEND_IMPORT_NOTIFICATION_EMAILS_SQUARESPACE'] = 'true' api_key = ENV['SQUARESPACE_API_KEY'] app_name = ENV['SQUARESPACE_APP_NAME'] @@ -21,7 +22,6 @@ .and_return(stub_client) expect(stub_client).to receive(:get_orders).with('pending').and_return(stub_orders) - expect_any_instance_of(TaskHelper).to receive(:notify_of_import).with('squarespace', []) squarespace_order_fixture['result'].each do |test_order| shipping_address = test_order['shippingAddress']