Sha256: 8b896db79e10c1e428a52ae7b0a7b7c673804cff517a6ab8473b95ef04bbfc83

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cfoundry-0.5.3.rc7 spec/cc_api_stub/domains_spec.rb
cfoundry-0.5.3.rc6 spec/cc_api_stub/domains_spec.rb
cfoundry-0.6.0.rc2 spec/cc_api_stub/domains_spec.rb
cfoundry-0.6.0.rc1 spec/cc_api_stub/domains_spec.rb