Sha256: 48099654c067da011faed12ffa8e49ea8dc4afcad37cf5e706ec322e7f92a3cb

Contents?: true

Size: 638 Bytes

Versions: 7

Compression:

Stored size: 638 Bytes

Contents

require 'ecloud/spec_helper'

if Fog.mocking?
  describe "Fog::Ecloud::Compute::Ips", :type => :mock_tmrk_ecloud_model do
    subject { @vcloud }

    it { should respond_to(:ips) }

    describe :class do
      subject { @vcloud.vdcs[0].networks[0].ips.class }
      its(:model)       { should == Fog::Ecloud::Compute::Ip }
    end

    describe :ips do
      subject { @vcloud.vdcs[0].networks[0].ips.reload }
      it { should_not respond_to(:create) }

      it { should be_an_instance_of(Fog::Ecloud::Compute::Ips) }

      its(:length) { should == 252 }

      it { should have_members_of_the_right_model }
    end
  end
else
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 spec/ecloud/models/ips_spec.rb
fog-0.8.1 spec/ecloud/models/ips_spec.rb
fog-0.8.0 spec/ecloud/models/ips_spec.rb
fog-0.7.2 spec/ecloud/models/ips_spec.rb
fog-0.7.1 spec/ecloud/models/ips_spec.rb
fog-0.7.0 spec/ecloud/models/ips_spec.rb
fog-0.6.0 spec/ecloud/models/ips_spec.rb