diff options
author | Azul <azul@leap.se> | 2014-02-07 15:46:43 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-02-10 14:26:30 +0100 |
commit | 88f8128d568daaaa122d55ac7e546a81ae60964a (patch) | |
tree | 38cfb91263d6fc4183250485c38d12cb48ec2d63 /billing/test | |
parent | 3f9dc65636afb57fed441978dca4bf7d3209bd2d (diff) |
minor: more robust destruction of records in tests
Diffstat (limited to 'billing/test')
-rw-r--r-- | billing/test/integration/admin_customer_test.rb | 4 |
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 |