mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
6e156d0cfb
moving towards adding internet services add_internet_service require builder delete internet service internet_service(s) model/collections on public_ip internet_services on a vdc testing for internet services
29 lines
934 B
Ruby
29 lines
934 B
Ruby
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
|
|
|
|
describe "Fog::Vcloud::Terremark::Ecloud::InternetServices", :type => :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 }
|
|
its(:get_request) { should == nil }
|
|
its(:all_request) { should be_an_instance_of Proc }
|
|
its(:vcloud_type) { should == "application/vnd.tmrk.ecloud.internetService+xml" }
|
|
end
|
|
|
|
describe :internet_services do
|
|
subject { @vcloud.vdcs[0].internet_services }
|
|
|
|
it { should be_an_instance_of Fog::Vcloud::Terremark::Ecloud::InternetServices }
|
|
|
|
its(:length) { should == 4 }
|
|
|
|
it { should have_members_of_the_right_model }
|
|
end
|
|
end
|
|
end
|
|
|
|
|