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

29 lines
815 B
Ruby
Raw Normal View History

require 'ecloud/spec_helper'
2010-11-19 13:26:50 -05:00
if Fog.mocking?
describe "Fog::Compute::Ecloud::InternetServices", :type => :mock_tmrk_ecloud_model do
2010-11-19 13:26:50 -05:00
context "as an attribute of a VDC" do
subject { @vcloud.vdcs[0] }
it { should respond_to(:backup_internet_services) }
2010-11-19 13:26:50 -05:00
describe :class do
subject { @vcloud.vdcs[0].backup_internet_services.class }
its(:model) { should == Fog::Compute::Ecloud::BackupInternetService }
2010-11-19 13:26:50 -05:00
end
describe :backup_internet_services do
subject { @vcloud.vdcs[0].backup_internet_services }
it { should respond_to(:create) }
2010-11-19 13:26:50 -05:00
it { should be_an_instance_of(Fog::Compute::Ecloud::BackupInternetServices) }
2010-11-19 13:26:50 -05:00
its(:length) { should == 1 }
it { should(have_members_of_the_right_model) }
2010-11-19 13:26:50 -05:00
end
end
end
end