We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsonapi-rspec gem should load within rake without issues
rake aborted! NoMethodError: undefined method `configure' for RSpec:Module .../config/application.rb:20:in `<top (required)>' .../Rakefile:4:in `require_relative' .../Rakefile:4:in `<top (required)>' Caused by: LoadError: cannot load such file -- jsonapi-rspec .../config/application.rb:20:in `<top (required)>' .../Rakefile:4:in `require_relative' .../Rakefile:4:in `<top (required)>' (See full trace by running task with --trace)
requiring rspec/core in rspec.rb resolves the issue. Not sure if this is the best solution but certainly a simple fix.
The text was updated successfully, but these errors were encountered:
Hmm, could it be because of this: https://github.com/jsonapi-rb/jsonapi-rspec/blob/master/lib/jsonapi/rspec.rb#L11-L13
Could you please open a PR please.
Sorry, something went wrong.
Yes its definitely those lines of code - it's just rake is being a bit eager trying to load the gem before the RSpec:Core module is there...
Not sure if there's a better way but this PR resolves the issue
Fixed in #21
Thank you @sa73917!
No branches or pull requests
Expected Behavior
jsonapi-rspec gem should load within rake without issues
Actual Behavior
Steps to Reproduce the Problem
Specifications
Possible solution
requiring rspec/core in rspec.rb resolves the issue. Not sure if this is the best solution but certainly a simple fix.
The text was updated successfully, but these errors were encountered: