Sha256: 01eb17634d6e2ada4ef384a809fddd1e58169c68f50cd7ab7415d526afaca013

Contents?: true

Size: 899 Bytes

Versions: 22

Compression:

Stored size: 899 Bytes

Contents

Shindo.tests('Fog::Compute[:libvirt] | network model', ['libvirt']) do

  networks = Fog::Compute[:libvirt].networks
  network = networks.last

  tests('The network model should') do
    tests('have the action') do
      test('reload') { network.respond_to? 'reload' }
    end
    tests('have attributes') do
      model_attribute_hash = network.attributes
      attributes = [ :name, :uuid, :bridge_name]
      tests("The network model should respond to") do
        attributes.each do |attribute|
          test("#{attribute}") { network.respond_to? attribute }
        end
      end
      tests("The attributes hash should have key") do
        attributes.each do |attribute|
          test("#{attribute}") { model_attribute_hash.key? attribute }
        end
      end
    end
    test('be a kind of Fog::Compute::Libvirt::Network') { network.kind_of? Fog::Compute::Libvirt::Network }
  end

end

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
fog-libvirt-0.0.3 tests/libvirt/models/compute/network_tests.rb
fog-libvirt-0.0.2 tests/libvirt/models/compute/network_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/libvirt/models/compute/network_tests.rb
fog-libvirt-0.0.1 tests/libvirt/models/compute/network_tests.rb
fog-1.29.0 tests/libvirt/models/compute/network_tests.rb
fog-1.28.0 tests/libvirt/models/compute/network_tests.rb
fog-1.27.0 tests/libvirt/models/compute/network_tests.rb
fog-1.26.0 tests/libvirt/models/compute/network_tests.rb
fog-1.25.0 tests/libvirt/models/compute/network_tests.rb
nsidc-fog-1.24.1 tests/libvirt/models/compute/network_tests.rb
fog-1.24.0 tests/libvirt/models/compute/network_tests.rb
ns-fog-1.22.11 tests/libvirt/models/compute/network_tests.rb
ns-fog-1.22.10 tests/libvirt/models/compute/network_tests.rb
ns-fog-1.22.9 tests/libvirt/models/compute/network_tests.rb
ns-fog-1.22.8 tests/libvirt/models/compute/network_tests.rb
ns-fog-1.22.7 tests/libvirt/models/compute/network_tests.rb
ns-fog-1.22.6 tests/libvirt/models/compute/network_tests.rb
fog-1.23.0 tests/libvirt/models/compute/network_tests.rb
ns-fog-1.22.4 tests/libvirt/models/compute/network_tests.rb
ns-fog-1.22.3 tests/libvirt/models/compute/network_tests.rb