Sha256: 37753696ea0af463300f5f2e09d36d8995275c7a5027d9df2334c2f9af7f1595

Contents?: true

Size: 694 Bytes

Versions: 9

Compression:

Stored size: 694 Bytes

Contents

require 'vcloud/spec_helper'

shared_examples_for "real or mock login requests" do
  subject { @vcloud }
  it_should_behave_like "all login requests"
end

if Fog.mocking?
  describe Fog::Vcloud, :type => :mock_vcloud_request do
    it_should_behave_like "real or mock login requests"

    describe "#body" do
      subject { @vcloud.login.body }
      its(:Org) { should == { :type => "application/vnd.vmware.vcloud.org+xml",
                              :href => @mock_organization.href,
                              :name => @mock_organization.name} }
    end
  end
else
  describe Fog::Vcloud, :type => :vcloud_request do
    it_should_behave_like "real or mock login requests"
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
fog-0.5.3 spec/vcloud/requests/login_spec.rb
fog-0.5.2 spec/vcloud/requests/login_spec.rb
fog-0.5.1 spec/vcloud/requests/login_spec.rb
fog-0.5.0 spec/vcloud/requests/login_spec.rb
phpfog-fog-0.4.1.3 spec/vcloud/requests/login_spec.rb
phpfog-fog-0.4.1.2 spec/vcloud/requests/login_spec.rb
phpfog-fog-0.4.1.1 spec/vcloud/requests/login_spec.rb
phpfog-fog-0.4.1 spec/vcloud/requests/login_spec.rb
fog-0.4.1 spec/vcloud/requests/login_spec.rb