Sha256: d1cf40355740d90c2ef48238cdd5734bf7dbb7afee1a978348e0701ed512ecd1

Contents?: true

Size: 662 Bytes

Versions: 159

Compression:

Stored size: 662 Bytes

Contents

require 'spec_helper'

require 'pact_broker/domain'
require 'pact_broker/api/decorators'

module PactBroker::Api::Decorators

  describe PactCollectionDecorator do

    let(:pact) do
      provider = PactBroker::Domain::Pacticipant.create(:name => 'Pricing Service')
      consumer = PactBroker::Domain::Pacticipant.create(:name => 'Condor')
      version = PactBroker::Domain::Version.create(:number => '1.3.0', :pacticipant => consumer)
      pact = PactBroker::Domain::Pact.create(:consumer_version => version, :provider => provider)
      pact
    end

    xit "should description" do
      puts PactCollectionDecorator.new([pact]).to_json
    end
  end

end

Version data entries

159 entries across 159 versions & 1 rubygems

Version Path
pact_broker-2.79.1 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.79.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.78.1 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.78.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.77.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.76.2 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.76.1 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.76.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.75.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.74.1 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.74.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.73.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.72.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.71.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.70.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.69.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.68.1 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.68.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.67.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb
pact_broker-2.66.0 spec/lib/pact_broker/api/decorators/pact_collection_decorator_spec.rb