Closed sa73917 closed 4 years ago
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.
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!
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.