Skip to content

Commit c6fed46

Browse files
authored
refactor: fix typo in interaction_mismatch.rb from candiate_diffs to candidate_diffs (pact-foundation#144)
1 parent 65bf502 commit c6fed46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/pact/mock_service/interactions/interaction_mismatch.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ class InteractionMismatch
1414
def initialize candidate_interactions, actual_request
1515
@candidate_interactions = candidate_interactions
1616
@actual_request = actual_request
17-
@candiate_diffs = candidate_interactions.collect{ | candidate_interaction| CandidateDiff.new(candidate_interaction, actual_request)}
17+
@candidate_diffs = candidate_interactions.collect{ | candidate_interaction| CandidateDiff.new(candidate_interaction, actual_request)}
1818
end
1919

2020
def to_hash
21-
candiate_diffs.collect(&:to_hash)
21+
candidate_diffs.collect(&:to_hash)
2222
end
2323

2424
def to_s
25-
candiate_diffs.collect(&:to_s).join("\n")
25+
candidate_diffs.collect(&:to_s).join("\n")
2626
end
2727

2828
def short_summary
29-
mismatched_attributes = candiate_diffs.collect(&:mismatched_attributes).flatten.uniq.join(", ").reverse.sub(",", "dna ").reverse #OMG what a hack!
29+
mismatched_attributes = candidate_diffs.collect(&:mismatched_attributes).flatten.uniq.join(", ").reverse.sub(",", "dna ").reverse #OMG what a hack!
3030
actual_request.method_and_path + " (request #{mismatched_attributes} did not match)"
3131
end
3232

3333
private
3434

35-
attr_accessor :candiate_diffs
35+
attr_accessor :candidate_diffs
3636

3737
class CandidateDiff
3838

0 commit comments

Comments
 (0)