Sha256: 0e97cd8796441732a5720cc3dc45d3d865bcc816ae181a235232eb210172d3c5

Contents?: true

Size: 919 Bytes

Versions: 14

Compression:

Stored size: 919 Bytes

Contents

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

  interfaces = Fog::Compute[:libvirt].interfaces
  interface = interfaces.last

  tests('The interface model should') do
    tests('have the action') do
      test('reload') { interface.respond_to? 'reload' }
    end
    tests('have attributes') do
      model_attribute_hash = interface.attributes
      attributes = [ :name, :mac, :active]
      tests("The interface model should respond to") do
        attributes.each do |attribute|
          test("#{attribute}") { interface.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::Libvirt::Compute::Interface') { interface.kind_of? Fog::Libvirt::Compute::Interface }
  end

end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
fog-libvirt-0.13.2 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.13.1 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.13.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.12.2 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.12.1 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.12.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.11.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.10.1 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.10.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-csem-0.9.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.9.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.8.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.7.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.6.0 tests/libvirt/models/compute/interface_tests.rb