Sha256: bb99b25ad4e808be3a159e9e5f8a612404e95dde44690e0169cc54c3ad0a952a
Contents?: true
Size: 1017 Bytes
Versions: 14
Compression:
Stored size: 1017 Bytes
Contents
require 'pact_broker/domain/verification' module PactBroker module Domain describe Verification do describe "#consumer" do let!(:consumer) do ProviderStateBuilder.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 ProviderStateBuilder.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
14 entries across 14 versions & 1 rubygems