Just trying to get started with Pacto and I can't get it to load contracts. Here's what I've got:
My current Gemfile.lock: https://gist.github.com/IanWhitney/95c26ee672e6b44609f0#file-gemfile-lock
Ruby: 2.2.0-p0
I have a contracts directory in the top level of my app. I only have one contract in there, which came from your samples directory. I've tried both the get_album_cover.json and user.json contracts. I don't expect these contracts to be validated, I just want to see the contract validation run and fail.
I have added the require 'pacto/rake_task' line to my Rakefile.
I then spin up my Rails server so that it is running on port 3000
Then on the command line, I use
bundle exec rake pacto:validate[http://localhost:3000,contracts] --trace
And I get the following stack trace: https://gist.github.com/IanWhitney/95c26ee672e6b44609f0#file-stacktrace-sh
Thoughts?
I was getting the same response when I tried to load contracts in an Rspec test as well. I thought maybe the problem was there, but no. All my attempts to load contracts results in this error.