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
The rspec matchers depend on rspec-core already being loaded (or being autoloaded).
However, apps that leverage Bundlers `require:` option for specifying the entrypoint file to be loaded by Bundle.require will not necessarily have autoloading configured at that point (if ever). This ensures that should the rspec.rb file be loaded prior to rspec, it will properly require rspec/core so that the RSpec references actually work.
And the end result is that users don't need to explicitly `require 'graphiti_spec_helpers'` in a spec-helper at all, but may instead simply adjust their Gemfile:
```
group :test do
gem "graphiti_spec_helpers", require: "graphiti_spec_helpers/rspec"
end
```
fixesgraphiti-api#18
when including graphiti this way, there is no
require 'rspec'
at the top of the file https://github.com/graphiti-api/graphiti_spec_helpers/blob/master/lib/graphiti_spec_helpers/rspec.rbas a result this doesn't work in the rails app:
cc: @jasonkarns
The text was updated successfully, but these errors were encountered: