test/cloud/fog_test.rb in rubber-2.7.4 vs test/cloud/fog_test.rb in rubber-2.7.5
- old
+ new
@@ -5,24 +5,24 @@
class FogTest < Test::Unit::TestCase
context "fog" do
setup do
- env = {'compute_credentials' =>
- {'rackspace_api_key' => "XXX", 'rackspace_username' => "YYY", 'provider' => "rackspace"},
+ env = { 'compute_credentials' =>
+ { 'rackspace_api_key' => 'XXX', 'rackspace_username' => 'YYY', 'provider' => 'rackspace'},
'storage_credentials' =>
- {'rackspace_api_key' => "XXX", 'rackspace_username' => "YYY", 'provider' => "rackspace"}}
+ { 'rackspace_api_key' => 'XXX', 'rackspace_username' => 'YYY', 'provider' => 'rackspace'}}
env = Rubber::Configuration::Environment::BoundEnv.new(env, nil, nil, nil)
@cloud = Rubber::Cloud::Fog.new(env, nil)
end
should "instantiate" do
assert @cloud.compute_provider
assert @cloud.storage_provider
end
should "provide storage" do
- assert_raises(Fog::Errors::MockNotImplemented) { @cloud.storage('mybucket') }
+ assert @cloud.storage('mybucket')
end
should "not provide table store" do
assert_raises { @cloud.table_store('somekey') }
end