tests/requests/compute/image_tests.rb in fog-aws-3.1.0 vs tests/requests/compute/image_tests.rb in fog-aws-3.2.0

- old
+ new

@@ -53,11 +53,11 @@ # Fog::Compute[:aws].describe_images.body # end @image_id = 'ami-1aad5273' if Fog.mocking? - @other_account = Fog::Compute::AWS.new(:aws_access_key_id => 'other', :aws_secret_access_key => 'account') + @other_account = Fog::AWS::Compute.new(:aws_access_key_id => 'other', :aws_secret_access_key => 'account') @server = Fog::Compute[:aws].servers.create @server.wait_for{state == 'running'} @created_image tests("#create_image").formats(@create_image_format) do @@ -149,10 +149,10 @@ tests('failure') do tests("#modify_image_attribute(nil, { 'Add.Group' => ['all'] })").raises(ArgumentError) do Fog::Compute[:aws].modify_image_attribute(nil, { 'Add.Group' => ['all'] }).body end - tests("#modify_image_attribute('ami-00000000', { 'Add.UserId' => ['123456789012'] })").raises(Fog::Compute::AWS::NotFound) do + tests("#modify_image_attribute('ami-00000000', { 'Add.UserId' => ['123456789012'] })").raises(Fog::AWS::Compute::NotFound) do pending unless Fog.mocking? Fog::Compute[:aws].modify_image_attribute('ami-00000000', { 'Add.UserId' => ['123456789012'] }).body end end