Sha256: c8c1bc299a6f9a4cc83e9e661351cdcd079d0f40fc1dccada8fc73c7ca49ff19

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

Shindo.tests('Fog::Compute::RackspaceV2 | flavors', ['rackspace']) do

  pending if Fog.mocking?

  service = Fog::Compute::RackspaceV2.new

  tests("success") do
    tests("#all").succeeds do
      service.flavors.all
    end

    tests("#get").succeeds do
      service.flavors.get(2)
    end
  end

  tests("failure").returns(nil) do
    service.flavors.get('some_random_identity')
  end
end

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
fog-nirvanix-1.8.2 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-nirvanix-1.8.1 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-parser-fix-1.6.1 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-test-again-1.6.0 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-parser-fix-1.6.0 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-sgonyea-1.8.1 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-1.8.0 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-1.7.0 tests/rackspace/models/compute_v2/flavors_tests.rb
fog-1.6.0 tests/rackspace/models/compute_v2/flavors_tests.rb