Sha256: d76a34cd13e483ebcb1277806c29e67e8fb7dc10e2c60b7834b058b7186ebc8f

Contents?: true

Size: 657 Bytes

Versions: 22

Compression:

Stored size: 657 Bytes

Contents

#
# Author:: Celso Fernandes (<fernandes@zertico.com>)
# © Copyright IBM Corporation 2015.
#
# LICENSE: MIT (http://opensource.org/licenses/MIT)
#

Shindo.tests("Fog::Softlayer[:product] | Items model", ["softlayer"]) do
  
  @service = Fog::Softlayer[:product]

  tests("success") do

    tests("#all") do
      @items = @service.packages.first.items
      @items.first(3).each do |item|
        returns(Fog::Softlayer::Product::Item, "returns a "+item.description+" package item") { item.class }
      end
    end
    
    tests("#get") do
      returns(Fog::Softlayer::Product::Item) { @service.packages.first.items.get(299).class }
    end

  end
end

Version data entries

22 entries across 20 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-softlayer-1.1.4/tests/softlayer/models/product/items_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-softlayer-1.1.4/tests/softlayer/models/product/items_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-softlayer-1.1.4/tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.1.4 tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.1.3 tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.1.2 tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.1.1 tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.1.0 tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.0.3 tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.0.2 tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.0.1 tests/softlayer/models/product/items_tests.rb
fog-softlayer-1.0.0 tests/softlayer/models/product/items_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-softlayer-0.4.7/tests/softlayer/models/product/items_tests.rb
fog-softlayer-0.4.7 tests/softlayer/models/product/items_tests.rb
fog-softlayer-0.4.6 tests/softlayer/models/product/items_tests.rb
fog-softlayer-0.4.5 tests/softlayer/models/product/items_tests.rb
fog-softlayer-0.4.4 tests/softlayer/models/product/items_tests.rb
fog-softlayer-0.4.3 tests/softlayer/models/product/items_tests.rb
fog-softlayer-0.4.2 tests/softlayer/models/product/items_tests.rb
fog-softlayer-0.4.2.pre tests/softlayer/models/product/items_tests.rb