Skip to content

Commit

Permalink
Merge pull request #106 from pact-foundation/fix/use_single_quotes_in…
Browse files Browse the repository at this point in the history
…_term_mismatch

fix: use single quotes for pact term creation err msg
  • Loading branch information
YOU54F authored Aug 13, 2024
2 parents 7a09875 + d770791 commit 274ced5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact/term.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def initialize(attributes = {})
@matcher = attributes[:matcher]
raise Pact::Error.new("Please specify a matcher for the Term") unless @matcher != nil
raise Pact::Error.new("Please specify a value to generate for the Term") unless @generate != nil
raise Pact::Error.new("Value to generate \"#{@generate}\" does not match regular expression #{@matcher.inspect}") unless @generate =~ @matcher
raise Pact::Error.new("Value to generate '#{@generate}' does not match regular expression #{@matcher.inspect}") unless @generate =~ @matcher
end

def to_hash
Expand Down

0 comments on commit 274ced5

Please sign in to comment.