Sha256: aecb0bf07605eabe38539fdbbc6ef85722e1517545c0af66d9642db679085bfc

Contents?: true

Size: 447 Bytes

Versions: 107

Compression:

Stored size: 447 Bytes

Contents

module CcApiStub
  module ServiceBindings
    extend Helper

    class << self
      def succeed_to_create
        response_body = Helper.load_fixtures("fake_cc_service_binding")
        stub_post(collection_endpoint, {}, response(201, response_body))
      end

      private

      def object_endpoint
        %r{/v2/service_bindings/[^/]+$}
      end

      def collection_endpoint
        %r{/v2/service_bindings$}
      end
    end
  end
end

Version data entries

107 entries across 107 versions & 3 rubygems

Version Path
cfoundry-0.7.0.rc4 lib/cc_api_stub/service_bindings.rb
cfoundry-0.7.0.rc3 lib/cc_api_stub/service_bindings.rb
cfoundry-0.7.0.rc2 lib/cc_api_stub/service_bindings.rb
cfoundry-0.7.0.rc1 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.1.rc4 lib/cc_api_stub/service_bindings.rb
cfoundry-0.5.3.rc7 lib/cc_api_stub/service_bindings.rb
static-1.0.1 vendor/cfoundry-0.5.2/lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.1.rc3 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.1.rc2 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.1.rc1 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.0 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.0.rc6 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.0.rc5 lib/cc_api_stub/service_bindings.rb
cfoundry-0.5.3.rc6 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.0.rc4 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.0.rc3 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.0.rc2 lib/cc_api_stub/service_bindings.rb
cfoundry-0.6.0.rc1 lib/cc_api_stub/service_bindings.rb
cfoundry-0.5.3.rc5 lib/cc_api_stub/service_bindings.rb
cfoundry-0.5.3.rc4 lib/cc_api_stub/service_bindings.rb