tests/rackspace/databases_tests.rb in fog-1.14.0 vs tests/rackspace/databases_tests.rb in fog-1.15.0
- old
+ new
@@ -84,10 +84,10 @@
returns(true) { (@service.instance_variable_get("@uri").host =~ /dfw/) != nil }
@service.flavors
end
tests('specify old contstant style service endoint').succeeds do
@service = Fog::Rackspace::Databases.new :rackspace_endpoint => Fog::Rackspace::Databases::ORD_ENDPOINT
- returns(true) { (@service.instance_variable_get("@uri").host =~ /ord/ ) != nil }
+ returns(true) { (@service.instance_variable_get("@uri").to_s =~ /#{Fog::Rackspace::Databases::ORD_ENDPOINT}/ ) != nil }
@service.flavors
end
tests('specify region').succeeds do
@service = Fog::Rackspace::Databases.new :rackspace_region => :ord
returns(true, "auth token populated") { !@service.send(:auth_token).nil? }