Skip to content
New issue

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

Fix compatibility issues with rspec-rails #121

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

mcmire
Copy link
Collaborator

@mcmire mcmire commented Feb 9, 2021

With 0.6.0, requiring super_diff/rspec-rails in the context of
rspec-rails suddenly started failing. We try to require
rspec/version so that we can have access to RSpec::Version. However,
rspec-rails does not depend on the rspec metagem, so RSpec::Version
is not a constant when using rspec-rails. In addition, this was never
caught because it turns out that integration with rspec-rails was not
being properly tested.

This commit fixes super_diff to reference RSpec::Core::Version (since
we can always assume rspec-core has been loaded) and makes sure that
we are testing it so the aforementioned problem does not occur again.


Fixes #120.

@mcmire mcmire force-pushed the fix-compat-with-rspec-rails branch 2 times, most recently from b4c70f4 to a39b9ee Compare February 9, 2021 08:02
With 0.6.0, requiring `super_diff/rspec-rails` in the context of
`rspec-rails` suddenly started failing. We try to require
`rspec/version` so that we can have access to RSpec::Version. However,
`rspec-rails` does not depend on the `rspec` metagem, so RSpec::Version
is not a constant when using `rspec-rails`. In addition, this was never
caught because it turns out that integration with `rspec-rails` was not
being properly tested.

This commit fixes `super_diff` to reference RSpec::Core::Version (since
we can always assume `rspec-core` has been loaded) and makes sure that
we are testing it so the aforementioned problem does not occur again.
@mcmire mcmire merged commit d33a157 into master Feb 10, 2021
@mcmire mcmire deleted the fix-compat-with-rspec-rails branch February 10, 2021 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to 0.6.0 failing when trying to load rspec/version
1 participant