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

Add Rails 4.2 support #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nbibler
Copy link
Contributor

@nbibler nbibler commented Mar 30, 2015

The intent of this pull request is to add Rails 4.2 support to the library.

Currently, there is one commit on the branch which updates the column option comparisons to use column_defaults when comparing the default column value. This is something that Rails did a while ago and has been the public API for getting the default value for some time before that. This change works in all 4.x versions.

There is one outstanding issue which is testing for default scopes. Currently, part of the matcher is to generate SQL from scope.arel.to_sql and compare it with a relation.arel.to_sql output. In Rails 4.2.x these values are identical and both contain ? SQL parameter values in them - unlike Rails 4.0 and 4.1 where the values are injected into the string. I'm currently unsure the best way to modify this library to better test for a default query scope.

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.

1 participant