Sha256: a60cfd6662ada9dc86296dc1d5612d2cd905daae3f11662c1dffb4dfc314837b
Contents?: true
Size: 747 Bytes
Versions: 12
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
12 entries across 12 versions & 1 rubygems