Sha256: aeecaa98d762a41f07c7e74df29e27fcc6afcf9bb97147cbfe9ca4e72f7aea17

Contents?: true

Size: 679 Bytes

Versions: 112

Compression:

Stored size: 679 Bytes

Contents

require 'spec_helper'
require 'pact_broker/api/decorators/latest_pact_decorator'

module PactBroker

  module Api

    module Decorators

      describe LatestPactDecorator do

        let(:pact_domain) { TestDataBuilder.new.create_pact_with_hierarchy('Consumer', '1.2.3', 'Provider').and_return(:pact) }
        let(:pact) { RepresentablePact.new(pact_domain) }
        let(:base_url) { 'http://example.org' }

        subject { JSON.parse LatestPactDecorator.new(pact).to_json(user_options: { base_url: base_url }), symbolize_names: true}

        it "includes the createdAt date" do
          expect(subject[:createdAt]).to_not be_nil
        end

      end
    end
  end
end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
pact_broker-2.65.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.64.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.63.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.62.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.61.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.60.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.60.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.59.2 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.59.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.59.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.58.3 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.58.2 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.58.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.57.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.56.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.56.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.55.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.54.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.53.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.52.2 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb