From d7707916b531ab872670b77597d1c2dde87d610f Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Mon, 12 Aug 2024 16:38:30 +0100 Subject: [PATCH] fix: use single quotes for pact term creation err msg fixes #46 --- lib/pact/term.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact/term.rb b/lib/pact/term.rb index 0b27ca6..3e7647b 100644 --- a/lib/pact/term.rb +++ b/lib/pact/term.rb @@ -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