spec/resource_spec.rb in infoblox-0.2.4 vs spec/resource_spec.rb in infoblox-0.2.5

- old
+ new

@@ -59,7 +59,17 @@ f.name = "jerry" f.sect = :fulburns f.post f._ref.should eq('abcdefg') end + + it 'should map wapi objects to classes' do + @expected = {} + ObjectSpace.each_object(Class) do |p| + if p < Infoblox::Resource + @expected[p.wapi_object] = p + end + end + Infoblox::Resource.resource_map.should eq(@expected) + end end