Sha256: 0af055b73f33a5bd9b33bc84dbf1f76b73cc21dec299e3962365143c2a2bea6c
Contents?: true
Size: 618 Bytes
Versions: 7
Compression:
Stored size: 618 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(TestDataBuilder.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
7 entries across 7 versions & 1 rubygems