2010-05-27 21:27:12 -04:00
|
|
|
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
|
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
if Fog.mocking?
|
|
|
|
describe "Fog::Vcloud::Terremark::Ecloud::InternetServices", :type => :mock_tmrk_ecloud_model do
|
|
|
|
context "as an attribute of a VDC" do
|
|
|
|
subject { @vcloud.vdcs[0] }
|
|
|
|
|
|
|
|
it { should respond_to :internet_services }
|
|
|
|
|
|
|
|
describe :class do
|
|
|
|
subject { @vcloud.vdcs[0].internet_services.class }
|
|
|
|
its(:model) { should == Fog::Vcloud::Terremark::Ecloud::InternetService }
|
|
|
|
end
|
2010-05-27 21:27:12 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
describe :internet_services do
|
|
|
|
subject { @vcloud.vdcs[0].internet_services }
|
2010-05-27 21:27:12 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
it { should respond_to :create }
|
2010-05-27 21:27:12 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
it { should be_an_instance_of Fog::Vcloud::Terremark::Ecloud::InternetServices }
|
2010-05-27 21:27:12 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
its(:length) { should == 4 }
|
|
|
|
|
|
|
|
it { should have_members_of_the_right_model }
|
|
|
|
end
|
2010-05-27 21:27:12 -04:00
|
|
|
end
|
|
|
|
end
|
2010-06-17 19:58:09 -04:00
|
|
|
else
|
2010-05-27 21:27:12 -04:00
|
|
|
end
|