Sha256: 0642710342ba9f5d95bf3bb3ab1e561a4896e6e315ffe802b0ac8572165fb9ff

Contents?: true

Size: 575 Bytes

Versions: 14

Compression:

Stored size: 575 Bytes

Contents

Shindo.tests('Fog::Compute[:libvirt] | interfaces collection', ['libvirt']) do

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

  tests('The interfaces collection') do
    test('should not be empty') { not interfaces.empty? }
    test('should be a kind of Fog::Libvirt::Compute::Interfaces') { interfaces.kind_of? Fog::Libvirt::Compute::Interfaces }
    tests('should be able to reload itself').succeeds { interfaces.reload }
    tests('should be able to get a model') do
      tests('by instance name').succeeds { interfaces.get interfaces.first.name }
    end
  end

end

Version data entries

14 entries across 14 versions & 2 rubygems

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