Sha256: 92375610d7e25e9d403dea65f8509e3f5a4bde3799cd7321f1c3de1c5680af7f

Contents?: true

Size: 919 Bytes

Versions: 30

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::Compute::Libvirt::Interface') { interface.kind_of? Fog::Compute::Libvirt::Interface }
  end

end

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
fog-libvirt-0.5.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.4.2 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.4.1 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.4.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.3.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.2.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.1.0 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.0.4 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.0.3 tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.0.2 tests/libvirt/models/compute/interface_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/libvirt/models/compute/interface_tests.rb
fog-libvirt-0.0.1 tests/libvirt/models/compute/interface_tests.rb
fog-1.29.0 tests/libvirt/models/compute/interface_tests.rb
fog-1.28.0 tests/libvirt/models/compute/interface_tests.rb
fog-1.27.0 tests/libvirt/models/compute/interface_tests.rb
fog-1.26.0 tests/libvirt/models/compute/interface_tests.rb
fog-1.25.0 tests/libvirt/models/compute/interface_tests.rb
nsidc-fog-1.24.1 tests/libvirt/models/compute/interface_tests.rb
fog-1.24.0 tests/libvirt/models/compute/interface_tests.rb
ns-fog-1.22.11 tests/libvirt/models/compute/interface_tests.rb