Sha256: 8279698222ea13931b165c7b28dbb445941900d6be3b6a89368aa864a139cb0c

Contents?: true

Size: 724 Bytes

Versions: 5

Compression:

Stored size: 724 Bytes

Contents

Shindo.tests('Fog::Compute[:opennebula] | flavors collection', ['opennebula']) do

  flavors = Fog::Compute[:opennebula].flavors

  tests('The flavors collection should') do
    test('should be a kind of Fog::Compute::OpenNebula::Flavors') { flavors.kind_of? Fog::Compute::OpenNebula::Flavors }
    tests('should be able to reload itself').succeeds { flavors.reload }

    tests('should be able to get models') do
      tests('all').succeeds { flavors.all }
      tests('by instance id').succeeds { flavors.get flavors.first.id }
      tests('by name').succeeds { flavors.get_by_name "fogtest" }
      tests('by filter').succeeds { flavors.get_by_filter ({:name => "fogtest", :id => flavors.first.id }) }
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-1.29.0 tests/opennebula/models/compute/flavors_tests.rb
fog-1.28.0 tests/opennebula/models/compute/flavors_tests.rb
fog-1.27.0 tests/opennebula/models/compute/flavors_tests.rb
fog-1.26.0 tests/opennebula/models/compute/flavors_tests.rb
fog-1.25.0 tests/opennebula/models/compute/flavors_tests.rb