Sha256: 543d3824bea9f52171f114b95187495025fd62c3a55004e2f314f9a4f4161813

Contents?: true

Size: 752 Bytes

Versions: 61

Compression:

Stored size: 752 Bytes

Contents

Shindo.tests('Fog::Core::Connection', ['core']) do

  raises(ArgumentError, "raises ArgumentError when no arguments given") do
    Fog::Core::Connection.new
  end

  tests('new("http://example.com")') do
    @instance = Fog::Core::Connection.new("http://example.com")
    responds_to([:request, :reset])

    tests('user agent').returns("fog/#{Fog::VERSION}") do
      @instance.instance_variable_get(:@excon).data[:headers]['User-Agent']
    end
  end

  tests('new("http://example.com", true)') do
    Fog::Core::Connection.new("http://example.com", true)
  end

  tests('new("http://example.com", false, options")') do
    options = {
      :debug_response => false
    }
    Fog::Core::Connection.new("http://example.com", true, options)
  end
end

Version data entries

61 entries across 61 versions & 5 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/core/connection_tests.rb
fog-1.24.0 tests/core/connection_tests.rb
ns-fog-1.22.11 tests/core/connection_tests.rb
ns-fog-1.22.10 tests/core/connection_tests.rb
ns-fog-1.22.9 tests/core/connection_tests.rb
ns-fog-1.22.8 tests/core/connection_tests.rb
ns-fog-1.22.7 tests/core/connection_tests.rb
ns-fog-1.22.6 tests/core/connection_tests.rb
fog-1.23.0 tests/core/connection_tests.rb
ns-fog-1.22.4 tests/core/connection_tests.rb
ns-fog-1.22.3 tests/core/connection_tests.rb
ns-fog-1.22.2 tests/core/connection_tests.rb
fog-1.22.1 tests/core/connection_tests.rb
fog-1.22.0 tests/core/connection_tests.rb
fog-1.21.0 tests/core/connection_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/core/connection_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/core/connection_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/core/connection_tests.rb
fog-1.20.0 tests/core/connection_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/core/connection_tests.rb