Sha256: 001a64c53128d8be6522b97a2e258a76a6aab8fadb2223ffa53c8e9dd97b0b4f

Contents?: true

Size: 623 Bytes

Versions: 14

Compression:

Stored size: 623 Bytes

Contents

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

module PactBroker

  module Api

    module Decorators

      describe LatestPactDecorator do

        let(:pact) { RepresentablePact.new(ProviderStateBuilder.new.create_pact_with_hierarchy 'Consumer', '1.2.3', 'Provider') }
        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

14 entries across 14 versions & 1 rubygems

Version Path
pact_broker-2.0.5 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.4 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.3 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.2 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0.beta.8 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0.beta.7 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0.beta.6 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0.beta.5 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0.beta.4 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0.beta.3 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0.beta.2 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb
pact_broker-2.0.0.beta.1 spec/lib/pact_broker/api/decorators/latest_pact_decorator_spec.rb