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