Skip to content

undefined method `with_consumer' for Pact:Module(NoMethodError) #3

Description

@tigerlei010

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

'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions