Skip to content

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