Sha256: 989a8057342f9a55e91aa67a157033ec2e1ed7197d5b4b7d399fa7680781f1ec
Contents?: true
Size: 747 Bytes
Versions: 48
Compression:
Stored size: 747 Bytes
Contents
require 'pact_broker/domain/pact' module PactBroker module Domain describe Pact do describe "latest_verification" do context "when it has been set to an object" do subject { Pact.new(latest_verification: 'verification') } its(:latest_verification) { is_expected.to eq 'verification' } end context "when it has been set to nil" do subject { Pact.new(latest_verification: nil) } its(:latest_verification) { is_expected.to eq nil } end context "when it has not been set" do it "raises an error" do expect { Pact.new.latest_verification.foo }.to raise_error UnsetAttributeError end end end end end end
Version data entries
48 entries across 48 versions & 1 rubygems