Sha256: 3d4db42a21549ed8767839dd67efb5b522f42bc315eb5cc23864e2474486beae
Contents?: true
Size: 850 Bytes
Versions: 7
Compression:
Stored size: 850 Bytes
Contents
require 'ecloud/spec_helper' if Fog.mocking? describe "Fog::Ecloud::Compute::InternetServices", :type => :mock_tmrk_ecloud_model do context "as an attribute of an internet_service" do subject { @vcloud.vdcs.first.public_ips.first.internet_services.first } it { should respond_to(:nodes) } describe :class do subject { @vcloud.vdcs.first.public_ips.first.internet_services.first.nodes.class } its(:model) { should == Fog::Ecloud::Compute::Node } end describe :nodes do subject { @vcloud.vdcs.first.public_ips.first.internet_services.first.nodes } it { should respond_to(:create) } it { should be_an_instance_of(Fog::Ecloud::Compute::Nodes) } its(:length) { should == 3 } it { should have_members_of_the_right_model } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems