File tree 2 files changed +3
-14
lines changed
2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ class ConsumerContractBuilder
11
11
12
12
include Pact ::Logging
13
13
14
- attr_reader :consumer_contract , : mock_service_base_url
14
+ attr_reader :mock_service_base_url
15
15
16
16
def initialize ( attributes )
17
17
@interaction_builder = nil
18
- @consumer_contract = {
18
+ @consumer_contract_details = {
19
19
consumer : { name : attributes [ :consumer_name ] } ,
20
20
provider : { name : attributes [ :provider_name ] } ,
21
21
pactfile_write_mode : attributes [ :pactfile_write_mode ] . to_s ,
@@ -46,7 +46,7 @@ def log msg
46
46
end
47
47
48
48
def write_pact
49
- mock_service_client . write_pact @consumer_contract
49
+ mock_service_client . write_pact @consumer_contract_details
50
50
end
51
51
52
52
def wait_for_interactions options = { }
Original file line number Diff line number Diff line change @@ -63,17 +63,6 @@ module Consumer
63
63
end
64
64
end
65
65
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
-
77
66
describe "#mock_service_base_url" do
78
67
79
68
subject do
You can’t perform that action at this time.
0 commit comments