1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/vcloud/terremark/ecloud/models/ips_spec.rb

29 lines
764 B
Ruby
Raw Normal View History

2010-06-09 19:20:14 -04:00
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
describe "Fog::Vcloud::Terremark::Ecloud::Ips", :type => :tmrk_ecloud_model do
subject { @vcloud }
it { should_not respond_to :ips }
describe :class do
subject { @vcloud.vdcs[0].networks[0].ips.class }
its(:model) { should == Fog::Vcloud::Terremark::Ecloud::Ip }
its(:get_request) { should be_nil }
its(:all_request) { should be_nil }
its(:vcloud_type) { should be_nil }
it { should_not respond_to :create }
end
describe :ips do
subject { @vcloud.vdcs[0].networks[0].ips }
it { should be_an_instance_of Fog::Vcloud::Terremark::Ecloud::Ips }
its(:length) { should == 252 }
it { should have_members_of_the_right_model }
end
end