Sha256: 9417e437a886048fe7e9920f8522a312bf1f6dbecf39979a1c47afaa0ec4ad99

Contents?: true

Size: 815 Bytes

Versions: 7

Compression:

Stored size: 815 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 a VDC" do
      subject { @vcloud.vdcs[0] }

      it { should respond_to(:backup_internet_services) }

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

      describe :backup_internet_services do
        subject { @vcloud.vdcs[0].backup_internet_services }

        it { should respond_to(:create) }

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

        its(:length) { should == 1 }

        it { should(have_members_of_the_right_model) }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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