Sha256: 5342683f40a621bad6448a98f5101b006ef723ab7e4fb99f51baf6c2ca07c0db

Contents?: true

Size: 1007 Bytes

Versions: 20

Compression:

Stored size: 1007 Bytes

Contents

require 'pact_broker/domain/verification'

module PactBroker

  module Domain
    describe Verification do

      describe "#consumer" do
        let!(:consumer) do
          TestDataBuilder.new
            .create_consumer
            .create_provider
            .create_consumer_version
            .create_pact
            .create_verification
            .and_return(:consumer)
        end

        it "returns the consumer for the verification" do
          expect(Verification.order(:id).first.consumer).to eq consumer
        end
      end

      describe "#provider" do
        let!(:provider) do
          TestDataBuilder.new
            .create_consumer
            .create_provider
            .create_consumer_version
            .create_pact
            .create_verification
            .and_return(:provider)
        end

        it "returns the provider for the verification" do
          expect(Verification.order(:id).first.provider).to eq provider
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pact_broker-2.12.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.11.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.10.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.9.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.9.0.beta.5 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.8.0.beta.5 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.8.0.beta.4 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.7.0.beta.3 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.7.0.beta.2 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.7.0.beta.1 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.6.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.5.1 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.5.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.4.2 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.4.1 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.4.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.3.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.2.0 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.1.1 spec/lib/pact_broker/domain/verification_spec.rb
pact_broker-2.1.0 spec/lib/pact_broker/domain/verification_spec.rb