when execute rake spec, all is OK;
when execute rake pact:verify:local, A error happened:
tigerlei@SZX1000416776:~/coding/pact_rb/example_pact-master
$ rake pact:verify:local
SPEC_OPTS='' /usr/bin/ruby2.3 -S pact verify --pact-helper /home/tigerlei/coding/pact_rb/example_pact-master/spec/pacts/pact_helper.rb --pact-uri spec/pacts/my_consumer-my_provider.json
/home/tigerlei/coding/pact_rb/example_pact-master/spec/pacts/pact_helper.rb:1:in <top (required)>': undefined method with_consumer' for Pact:Module (NoMethodError)
from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli/run_pact_verification.rb:43:in load' from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli/run_pact_verification.rb:43:in load_pact_helper'
from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli/run_pact_verification.rb:21:in call' from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli/run_pact_verification.rb:14:in call'
from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli.rb:18:in verify' from /usr/lib/ruby/vendor_ruby/thor/command.rb:27:in run'
from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in invoke_command' from /usr/lib/ruby/vendor_ruby/thor.rb:359:in dispatch'
from /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in start' from /var/lib/gems/2.3.0/gems/pact-1.9.0/bin/pact:4:in <top (required)>'
from /usr/local/bin/pact:23:in load' from /usr/local/bin/pact:23:in
'
when execute rake spec, all is OK;
when execute rake pact:verify:local, A error happened:
tigerlei@SZX1000416776:~/coding/pact_rb/example_pact-master
'$ rake pact:verify:local
SPEC_OPTS='' /usr/bin/ruby2.3 -S pact verify --pact-helper /home/tigerlei/coding/pact_rb/example_pact-master/spec/pacts/pact_helper.rb --pact-uri spec/pacts/my_consumer-my_provider.json
/home/tigerlei/coding/pact_rb/example_pact-master/spec/pacts/pact_helper.rb:1:in
<top (required)>': undefined methodwith_consumer' for Pact:Module (NoMethodError)from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli/run_pact_verification.rb:43:in
load' from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli/run_pact_verification.rb:43:inload_pact_helper'from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli/run_pact_verification.rb:21:in
call' from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli/run_pact_verification.rb:14:incall'from /var/lib/gems/2.3.0/gems/pact-1.9.0/lib/pact/cli.rb:18:in
verify' from /usr/lib/ruby/vendor_ruby/thor/command.rb:27:inrun'from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in
invoke_command' from /usr/lib/ruby/vendor_ruby/thor.rb:359:indispatch'from /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in
start' from /var/lib/gems/2.3.0/gems/pact-1.9.0/bin/pact:4:in<top (required)>'from /usr/local/bin/pact:23:in
load' from /usr/local/bin/pact:23:in