Open Justin-Maxwell opened 7 years ago
Perhaps the lib/jsonapi-resources-matchers.rb
shouldn't require lib/jsonapi/resources/matchers.rb
and just let the user paste that into their spec helper. What do you think?
To be honest, I'm still struggling with Ruby/Rails includes, but I think requiring/allowing the user to be explicit in the spec_helper or individual specs is in-line with other testing libraries. So yes.
[nb: workaround is simply
gem 'jsonapi-resources-matchers', :require => false
]Using RubyMine, with Spring, and Bundler.require in application.rb
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 callingRspec.configure
, but I'm guessing RSpec.configure is dynamically created, and not necessarily at load time.Adding the second line here:
with Spring enabled, outputs:
and without Spring: