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