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