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.23.3 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.23.2 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.23.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.23.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.22.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.21.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.20.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.19.2 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.19.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.19.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.18.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.17.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.17.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.16.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.16.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.15.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.14.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.13.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.13.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.12.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb