Sha256: c934bbb56b7f16d0a424d6ea9e670462adc58e8bd7d7a00c5697ec6837c9f7c2

Contents?: true

Size: 669 Bytes

Versions: 8

Compression:

Stored size: 669 Bytes

Contents

require 'vcloud/spec_helper'

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

    it { should respond_to :public_ips }

    describe :class do
      subject { @vcloud.public_ips.class }
      its(:model)       { should == Fog::Vcloud::Terremark::Ecloud::PublicIp }
    end

    describe :public_ips do
      subject { @vcloud.vdcs[0].public_ips }
      it { should_not respond_to :create }

      it { should be_an_instance_of Fog::Vcloud::Terremark::Ecloud::PublicIps }

      its(:length) { should == 3 }

      it { should have_members_of_the_right_model }
    end
  end
else
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fog-0.5.2 spec/vcloud/terremark/ecloud/models/public_ips_spec.rb
fog-0.5.1 spec/vcloud/terremark/ecloud/models/public_ips_spec.rb
fog-0.5.0 spec/vcloud/terremark/ecloud/models/public_ips_spec.rb
phpfog-fog-0.4.1.3 spec/vcloud/terremark/ecloud/models/public_ips_spec.rb
phpfog-fog-0.4.1.2 spec/vcloud/terremark/ecloud/models/public_ips_spec.rb
phpfog-fog-0.4.1.1 spec/vcloud/terremark/ecloud/models/public_ips_spec.rb
phpfog-fog-0.4.1 spec/vcloud/terremark/ecloud/models/public_ips_spec.rb
fog-0.4.1 spec/vcloud/terremark/ecloud/models/public_ips_spec.rb