tests/rackspace/databases_tests.rb in fog-1.11.1 vs tests/rackspace/databases_tests.rb in fog-1.12.0

- old
+ new

@@ -44,13 +44,16 @@ tests('authentication v2') do pending if Fog.mocking? tests('variables populated').succeeds do - @service = Fog::Rackspace::Databases.new :rackspace_auth_url => 'https://identity.api.rackspacecloud.com/v2.0' + @service = Fog::Rackspace::Databases.new :rackspace_auth_url => 'https://identity.api.rackspacecloud.com/v2.0', :connection_options => { :ssl_verify_peer => true } returns(true, "auth token populated") { !@service.send(:auth_token).nil? } returns(false, "path populated") { @service.instance_variable_get("@uri").nil? } - returns(false, "identity service was used") { @service.instance_variable_get("@identity_service").nil? } + + identity_service = @service.instance_variable_get("@identity_service") + returns(false, "identity service was used") { identity_service.nil? } + returns(true, "connection_options are passed") { identity_service.instance_variable_get("@connection_options").has_key?(:ssl_verify_peer) } @service.flavors end tests('dfw region').succeeds do @service = Fog::Rackspace::Databases.new :rackspace_auth_url => 'https://identity.api.rackspacecloud.com/v2.0', :rackspace_region => :dfw returns(true, "auth token populated") { !@service.send(:auth_token).nil? }