Skip to content

Change some version checks to use ActiveRecord. #804

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

Closed
wants to merge 1 commit into from

Conversation

dpogue
Copy link
Contributor

@dpogue dpogue commented Aug 9, 2013

Trying to use ActiveRecord fixtures in my tests for a gem that uses ActiveRecord, but doesn't depend on all of Rails. Currently rspec-rails makes some checks based on ::Rails::VERSION.

This change uses ::ActiveRecord::VERSION for those checks related to ActiveRecord fixtures, allowing fixtures to be used without including Rails.

This allow using ActiveRecord fixtures without pulling in all of Rails.
@alindeman
Copy link
Contributor

Thanks! I think this looks good, but I want to see the entire test suite green. Unfortunately the autotest extraction broke the rspec-rails' test suite for a few days. It's since been fixed, so I rebased your changes and opened #805.

@alindeman alindeman closed this Aug 9, 2013
alindeman added a commit that referenced this pull request Aug 10, 2013
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.

2 participants