You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
[nb: workaround is simply gem 'jsonapi-resources-matchers', :require => false]
Using RubyMine, with Spring, and Bundler.require in application.rb
There was an error while trying to load the gem 'jsonapi-resources-matchers'.
Gem Load Error is: undefined method `configure' for RSpec:Module
As near as I can tell: When jsonapi-resources-matchers is loaded by Bundler.require, lib/jsonapi/resources/matchers/integrations/rspec.rb checks to see if RSpec is defined before calling Rspec.configure, but I'm guessing RSpec.configure is dynamically created, and not necessarily at load time.
Adding the second line here:
if defined?(RSpec)
puts 'RSpec: ', defined?(RSpec) || 'nope', '.configure: ', defined?(RSpec.configure) || 'nope'
RSpec.configure do |c|
c.include JSONAPI::Resources::Matchers, type: :resource
end
end