tests/rackspace/models/block_storage/volume_tests.rb in fog-maestrodev-1.8.0.20130114204828 vs tests/rackspace/models/block_storage/volume_tests.rb in fog-maestrodev-1.14.0.20130806165225
- old
+ new
@@ -1,14 +1,12 @@
Shindo.tests('Fog::Rackspace::BlockStorage | volume', ['rackspace']) do
- pending if Fog.mocking?
-
service = Fog::Rackspace::BlockStorage.new
options = { :display_name => "fog_#{Time.now.to_i.to_s}", :size => 100 }
- model_tests(service.volumes, options, false) do
- @instance.wait_for(timeout=1200) { ready? }
+ model_tests(service.volumes, options, true) do
+ @instance.wait_for{ ready? }
tests('double save').raises(Fog::Rackspace::BlockStorage::IdentifierTaken) do
@instance.save
end
@@ -18,10 +16,10 @@
end
tests('#snapshots').succeeds do
begin
snapshot = @instance.create_snapshot
- snapshot.wait_for(timeout=1200) { ready? }
+ snapshot.wait_for { ready? }
returns(true) { @instance.snapshots.first.id == snapshot.id }
ensure
snapshot.destroy if snapshot
end