From fb507f0abd10da31d687567fc917b1fe5172cf6b Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Fri, 9 Apr 2021 16:24:36 -0700 Subject: [PATCH] fix ./spec/features/admin/customers_spec.rb:27 --- app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index c1af111f4f..71025435ff 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -46,6 +46,6 @@ class Customer < ActiveRecord::Base return true unless orders.any? errors[:base] << I18n.t('admin.customers.destroy.has_associated_orders') - false + throw :abort end end