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.79.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.79.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.78.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.78.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.77.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.76.2 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.76.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.76.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.75.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.74.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.74.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.73.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.72.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.71.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.70.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.69.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.68.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.68.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.67.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.66.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb