Sha256: 32d73e9b8e0e7b3f2bafc0d201eb8e87253e8bd5d8b63eba004e689c3338f853

Contents?: true

Size: 983 Bytes

Versions: 95

Compression:

Stored size: 983 Bytes

Contents

Shindo.tests('Local | storage') do

  pending if Fog.mocking?

  before do
    @options = { :local_root => "~/.fog" }
  end

  tests('#endpoint') do
    tests('when no endpoint is provided').
      returns(nil) do
        Fog::Storage::Local.new(@options).endpoint
      end

    tests('when no host is provided').
      returns(nil) do
        @options[:scheme] = 'http'
        @options[:path] = '/files'
        @options[:port] = 80

        Fog::Storage::Local.new(@options).endpoint
      end

    tests('when endpoint is provided').
      returns('http://example.com/files') do
        @options[:endpoint] = 'http://example.com/files'

        Fog::Storage::Local.new(@options).endpoint
      end

    tests('when at least host option is provided').
      returns('http://example.com/files') do
        @options[:scheme] = 'http'
        @options[:host] = 'example.com'
        @options[:path] = '/files'

        Fog::Storage::Local.new(@options).endpoint
      end
  end
end

Version data entries

95 entries across 95 versions & 14 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/local/storage_tests.rb
fog-1.28.0 tests/local/storage_tests.rb
fog-local-0.1.0 tests/local/storage_tests.rb
fog-1.27.0 tests/local/storage_tests.rb
fog-1.26.0 tests/local/storage_tests.rb
fog-1.25.0 tests/local/storage_tests.rb
nsidc-fog-1.24.1 tests/local/storage_tests.rb
fog-1.24.0 tests/local/storage_tests.rb
ns-fog-1.22.11 tests/local/storage_tests.rb
ns-fog-1.22.10 tests/local/storage_tests.rb
ns-fog-1.22.9 tests/local/storage_tests.rb
ns-fog-1.22.8 tests/local/storage_tests.rb
ns-fog-1.22.7 tests/local/storage_tests.rb
ns-fog-1.22.6 tests/local/storage_tests.rb
fog-1.23.0 tests/local/storage_tests.rb
ns-fog-1.22.4 tests/local/storage_tests.rb
ns-fog-1.22.3 tests/local/storage_tests.rb
ns-fog-1.22.2 tests/local/storage_tests.rb
fog-1.22.1 tests/local/storage_tests.rb
fog-1.22.0 tests/local/storage_tests.rb