tests/aws/requests/compute/region_tests.rb in fog-1.20.0 vs tests/aws/requests/compute/region_tests.rb in fog-1.21.0

- old
+ new

@@ -16,8 +16,19 @@ tests("#describe_regions('region-name' => 'us-east-1')").formats(@regions_format) do Fog::Compute[:aws].describe_regions('region-name' => 'us-east-1').body end + tests("#incorrect_region") do + + raises(ArgumentError, "Unknown region: world-antarctica-1") do + Fog::Compute::AWS.new({:aws_access_key_id => 'dummykey', + :aws_secret_access_key => 'dummysecret', + :aws_session_token => 'dummytoken', + :region => "world-antarctica-1"}) + end + + end + end end