Sha256: 3b0c0176da763fa3151aa2489f83cccd77e1fe8a72e1e68b08c6c4f561699266

Contents?: true

Size: 631 Bytes

Versions: 7

Compression:

Stored size: 631 Bytes

Contents

require 'ecloud/spec_helper'

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

    it { should respond_to(:networks) }

    describe :class do
      subject { @vcloud.networks.class }
      its(:model)       { should == Fog::Ecloud::Compute::Network }
    end

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

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

      its(:length) { should == 2 }

      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/networks_spec.rb
fog-0.8.1 spec/ecloud/models/networks_spec.rb
fog-0.8.0 spec/ecloud/models/networks_spec.rb
fog-0.7.2 spec/ecloud/models/networks_spec.rb
fog-0.7.1 spec/ecloud/models/networks_spec.rb
fog-0.7.0 spec/ecloud/models/networks_spec.rb
fog-0.6.0 spec/ecloud/models/networks_spec.rb