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
fog-maestrodev-1.18.0.20131125083406 tests/core/connection_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/core/connection_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/core/connection_tests.rb
fog-maestrodev-1.18.0.20131121075022 tests/core/connection_tests.rb
fog-maestrodev-1.18.0.20131118164830 tests/core/connection_tests.rb
fog-maestrodev-1.18.0.20131115184302 tests/core/connection_tests.rb
fog-maestrodev-1.18.0.20131114200144 tests/core/connection_tests.rb
gapinc-fog-1.12.1.2.1 tests/core/connection_tests.rb
fog-maestrodev-1.18.0.20131112185232 tests/core/connection_tests.rb
fog-maestrodev-1.18.0.20131111203459 tests/core/connection_tests.rb
fog-1.18.0 tests/core/connection_tests.rb
fog-1.17.0 tests/core/connection_tests.rb
fog-1.16.0 tests/core/connection_tests.rb
fog-maestrodev-1.15.0.20130927082724 tests/core/connection_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/core/connection_tests.rb
fog-1.15.0 tests/core/connection_tests.rb
gapinc-fog-1.14.0 tests/core/connection_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/core/connection_tests.rb
fog-1.14.0 tests/core/connection_tests.rb
fog-1.13.0 tests/core/connection_tests.rb