summaryrefslogtreecommitdiff
path: root/billing/test
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-02-07 15:46:43 +0100
committerAzul <azul@leap.se>2014-02-10 14:26:30 +0100
commit88f8128d568daaaa122d55ac7e546a81ae60964a (patch)
tree38cfb91263d6fc4183250485c38d12cb48ec2d63 /billing/test
parent3f9dc65636afb57fed441978dca4bf7d3209bd2d (diff)
minor: more robust destruction of records in tests
Diffstat (limited to 'billing/test')
-rw-r--r--billing/test/integration/admin_customer_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/billing/test/integration/admin_customer_test.rb b/billing/test/integration/admin_customer_test.rb
index 58a7557..1b9953f 100644
--- a/billing/test/integration/admin_customer_test.rb
+++ b/billing/test/integration/admin_customer_test.rb
@@ -14,8 +14,8 @@ class AdminCustomerTest < ActionDispatch::IntegrationTest
teardown do
Warden.test_reset!
- @user.destroy
- @admin.destroy
+ @user.destroy if @user
+ @admin.destroy if @admin
end
test "check non customer as admin" do