Skip to content

Commit fb5488e

Browse files
committed
fix: remove unused ConsumerContractBuilder contract_details accessor
1 parent c0db0b0 commit fb5488e

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

lib/pact/consumer/consumer_contract_builder.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class ConsumerContractBuilder
1111

1212
include Pact::Logging
1313

14-
attr_reader :consumer_contract, :mock_service_base_url
14+
attr_reader :mock_service_base_url
1515

1616
def initialize(attributes)
1717
@interaction_builder = nil
18-
@consumer_contract = {
18+
@consumer_contract_details = {
1919
consumer: {name: attributes[:consumer_name]},
2020
provider: {name: attributes[:provider_name]},
2121
pactfile_write_mode: attributes[:pactfile_write_mode].to_s,
@@ -46,7 +46,7 @@ def log msg
4646
end
4747

4848
def write_pact
49-
mock_service_client.write_pact @consumer_contract
49+
mock_service_client.write_pact @consumer_contract_details
5050
end
5151

5252
def wait_for_interactions options = {}

spec/lib/pact/consumer/consumer_contract_builder_spec.rb

-11
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,6 @@ module Consumer
6363
end
6464
end
6565

66-
describe "#consumer_contract" do
67-
it "returns the consumer contract" do
68-
expect(subject.consumer_contract).to eq(
69-
consumer: { name: consumer_name },
70-
provider: { name: provider_name },
71-
pactfile_write_mode: 'overwrite',
72-
pact_dir: pact_dir
73-
)
74-
end
75-
end
76-
7766
describe "#mock_service_base_url" do
7867

7968
subject do

0 commit comments

Comments
 (0)