Sha256: ebfbe086b2e119caa0881e1bbadbaa90ff93b95603c4c572e5e91bfe03c82e26

Contents?: true

Size: 994 Bytes

Versions: 11

Compression:

Stored size: 994 Bytes

Contents

Shindo.tests('Fog::Rackspace', ['rackspace']) do

  tests('normalize_url') do
    tests('should return nil if endpoint is nil').returns(nil) do
      Fog::Rackspace.normalize_url nil
    end
    tests('should remove trailing spaces').returns("https://dfw.blockstorage.api.rackspacecloud.com/v1") do
      Fog::Rackspace.normalize_url "https://dfw.blockstorage.api.rackspacecloud.com/v1 "
    end
    tests('should remove trailing /').returns("https://dfw.blockstorage.api.rackspacecloud.com/v1") do
      Fog::Rackspace.normalize_url "https://dfw.blockstorage.api.rackspacecloud.com/v1/"
    end
    tests('should downcase url').returns("https://dfw.blockstorage.api.rackspacecloud.com/v1") do
      Fog::Rackspace.normalize_url "HTTPS://DFW.BLOCKSTORAGE.API.RACKSPACECLOUD.COM/V1"
    end
    tests('show do all three').returns("https://dfw.blockstorage.api.rackspacecloud.com/v1") do
      Fog::Rackspace.normalize_url "HTTPS://DFW.BLOCKSTORAGE.API.RACKSPACECLOUD.COM/V1/ "
    end
  end

end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
gapinc-fog-1.12.1.1 tests/rackspace/rackspace_tests.rb
gapinc-fog-1.12.1a tests/rackspace/rackspace_tests.rb
gapinc-fog-1.12.1 tests/rackspace/rackspace_tests.rb
fog-1.12.1 tests/rackspace/rackspace_tests.rb
fog-1.12.0 tests/rackspace/rackspace_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/rackspace/rackspace_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/rackspace/rackspace_tests.rb
fog-1.11.1 tests/rackspace/rackspace_tests.rb
fog-1.11.0 tests/rackspace/rackspace_tests.rb
fog-1.10.1 tests/rackspace/rackspace_tests.rb
fog-test-me-1.10.0 tests/rackspace/rackspace_tests.rb