From a10070bc0286a0e3c2919d2e1462dc3043102e5c Mon Sep 17 00:00:00 2001 From: Daniel Reichert Date: Wed, 31 Jul 2013 15:17:50 -0700 Subject: [PATCH] [rackspace|monitoring] Correcting entity destroy logic --- tests/rackspace/models/monitoring/alarm_tests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rackspace/models/monitoring/alarm_tests.rb b/tests/rackspace/models/monitoring/alarm_tests.rb index 42431af94..2b582bbf8 100644 --- a/tests/rackspace/models/monitoring/alarm_tests.rb +++ b/tests/rackspace/models/monitoring/alarm_tests.rb @@ -50,6 +50,6 @@ Shindo.tests('Fog::Rackspace::Monitoring | alarm', ['rackspace','rackspace_monit end ensure - @entity.destroy unless @entity + @entity.destroy if @entity end end