From: marios <[email protected]>

Signed-off-by: marios <[email protected]>
---
 tests/deltacloud/buckets_test.rb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/deltacloud/buckets_test.rb b/tests/deltacloud/buckets_test.rb
index 38fc120..12111ee 100644
--- a/tests/deltacloud/buckets_test.rb
+++ b/tests/deltacloud/buckets_test.rb
@@ -31,12 +31,10 @@ end
 describe 'Deltacloud API buckets collection' do
 
   include Deltacloud::Test::Methods
-
   need_collection :buckets
 
   #make sure we have at least one bucket and blob to test
-  begin
-
+  begin 
     @@my_bucket = random_name
     @@my_blob = random_name
     res = post(BUCKETS, :name=>@@my_bucket)
@@ -50,7 +48,7 @@ describe 'Deltacloud API buckets collection' do
     unless res.code == 200
       raise Exception.new("Failed to create blob #{@@my_blob}")
     end
-  end
+  end unless not api.collections.include?(:buckets)
 
   # delete the bucket/blob we created for the tests
   MiniTest::Unit.after_tests {
-- 
1.7.11.7

Reply via email to