Sha256: f8ebf1124ca2c8f345533bbc7c6f2ff32ee2490ee2c6c214f5f74f36fd739926

Contents?: true

Size: 1.14 KB

Versions: 104

Compression:

Stored size: 1.14 KB

Contents

require 'spec_helper'
require 'net/http'
require 'uri'

describe CcApiStub::Domains do
  describe ".succeed_to_create" do
    let(:url) { "http://example.com/v2/domains/" }
    subject { CcApiStub::Domains.succeed_to_create }

    it_behaves_like "a stubbed post request"
  end

  describe ".succeed_to_delete" do
    let(:url) { "http://example.com/v2/domains/1234" }
    subject { CcApiStub::Domains.succeed_to_delete }

    it_behaves_like "a stubbed delete request"
  end

  describe ".succeed_to_load_spaces" do
    let(:url) { "http://example.com/v2/domains/domain-id-1/spaces?inline-relationship-depth=1" }
    subject { CcApiStub::Domains.succeed_to_load_spaces }

    it_behaves_like "a stubbed get request"
  end

  describe ".succeed_to_add_space" do
    let(:url) { "http://example.com/v2/domains/domain-id-1/spaces/space-id-1" }
    subject { CcApiStub::Domains.succeed_to_add_space }

    it_behaves_like "a stubbed put request", :code => 201
  end

  describe ".succeed_to_update" do
    let(:url) { "http://example.com/v2/domains/domain-id-1" }
    subject { CcApiStub::Domains.succeed_to_update }

    it_behaves_like "a stubbed put request"
  end
end

Version data entries

104 entries across 104 versions & 3 rubygems

Version Path
new_cfoundry-4.9.4 spec/cc_api_stub/domains_spec.rb
new_cfoundry-4.9.3 spec/cc_api_stub/domains_spec.rb
ncfoundry-4.9.4 spec/cc_api_stub/domains_spec.rb
ncfoundry-4.9.3 spec/cc_api_stub/domains_spec.rb
ncfoundry-4.9.2 spec/cc_api_stub/domains_spec.rb
new_cfoundry-4.9.2 spec/cc_api_stub/domains_spec.rb
new_cfoundry-4.9.1 spec/cc_api_stub/domains_spec.rb
new_cfoundry-4.9.0 spec/cc_api_stub/domains_spec.rb
new_cfoundry-4.8.3 spec/cc_api_stub/domains_spec.rb
new_cfoundry-4.8.2 spec/cc_api_stub/domains_spec.rb
cfoundry-4.7.2.rc1 spec/cc_api_stub/domains_spec.rb
cfoundry-4.7.1 spec/cc_api_stub/domains_spec.rb
cfoundry-4.7.1.rc1 spec/cc_api_stub/domains_spec.rb
cfoundry-4.7.0 spec/cc_api_stub/domains_spec.rb
cfoundry-4.6.3.rc3 spec/cc_api_stub/domains_spec.rb
cfoundry-4.6.3.rc2 spec/cc_api_stub/domains_spec.rb
cfoundry-4.6.3.rc1 spec/cc_api_stub/domains_spec.rb
cfoundry-4.6.2 spec/cc_api_stub/domains_spec.rb
cfoundry-4.6.1 spec/cc_api_stub/domains_spec.rb
cfoundry-4.6.0 spec/cc_api_stub/domains_spec.rb