Sha256: 36492f5872d081db1544579568ba4d080651d2226feb36985f101a6840c70839
Contents?: true
Size: 854 Bytes
Versions: 10
Compression:
Stored size: 854 Bytes
Contents
require 'spec_helper' module Pact describe Term do describe "equality" do context "when the matcher and generate attrs are the same" do let(:this) { Term.new(generate: 'A', matcher: /A/) } let(:that) { Term.new(generate: 'A', matcher: /A/) } it "is equal" do expect(this).to eq that end end context "when the generate attrs are different" do let(:this) { Term.new(generate: /A/) } let(:that) { Term.new(generate: /B/) } it "is not equal" do expect(this).to_not eq that end end context "when the matcher attrs are different" do let(:this) { Term.new(matcher: 'A') } let(:that) { Term.new(matcher: 'B') } it "is not equal" do expect(this).to_not eq that end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems