Skip to content

Commit

Permalink
fix: use single quotes for pact term creation err msg
Browse files Browse the repository at this point in the history
fixes #46
  • Loading branch information
YOU54F committed Aug 12, 2024
1 parent 7a09875 commit d770791
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 d770791

Please sign in to comment.