tests/xenserver/models/compute/vlan_tests.rb in fog-1.22.0 vs tests/xenserver/models/compute/vlan_tests.rb in fog-1.22.1

- old
+ new

@@ -10,11 +10,11 @@ test(action) { vlan.respond_to? action } end end tests('have attributes') do model_attribute_hash = vlan.attributes - attributes = [ + attributes = [ :reference, :uuid, :__untagged_pif, :__tagged_pif, :tag @@ -24,11 +24,11 @@ test("#{attribute}") { vlan.respond_to? attribute } end end tests("The attributes hash should have key") do attributes.each do |attribute| - test("#{attribute}") { model_attribute_hash.has_key? attribute } + test("#{attribute}") { model_attribute_hash.key? attribute } end end end test('be a kind of Fog::Compute::XenServer::VLAN') { vlan.kind_of? Fog::Compute::XenServer::VLAN} @@ -58,10 +58,10 @@ @vlan.destroy @net.destroy (vlans.reload.find { |v| v.reference == @vlan.reference }).nil? end end - + tests("#tagged_pif") do test 'should return a PIF' do vlans.find.first.tagged_pif.is_a? Fog::Compute::XenServer::PIF end end