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

Start testing Rails 5 #203

Merged
merged 8 commits into from
May 1, 2016
Merged

Start testing Rails 5 #203

merged 8 commits into from
May 1, 2016

Conversation

brendon
Copy link
Owner

@brendon brendon commented Apr 17, 2016

There are plenty of failing tests, deprecations, and warnings. At least this works as a starting point for getting these ironed out.

brendon added 6 commits April 18, 2016 10:01
Callback declarations etc… don’t have to be done inside class_eval
Add attr_reader :position_changed to initialise @position_changed
Convert the removal of @scope_changed into a private method callable by
a callback
raise_in_transactional_callbacks is true and unchangeable in Rails 5
Remove use of unused parent variable
Use data_sources instead of tables. This method returns views too, but
our tests don’t use views, so this is safe to use in the dropping of
tables.
@brendon
Copy link
Owner Author

brendon commented Apr 19, 2016

Ok, I've cleared out the deprecations and other warnings. Now it's just the actual failing tests, and I'm almost certain it has to do with the attribute swapper functionality. Probably to do with the usage of the internal variable. I'll try to see if we can work around that.

@brendon
Copy link
Owner Author

brendon commented Apr 19, 2016

Hi @swanandp, tests are green. I've made the attribute swapping better in my opinion. We're no longer using an undocumented internal variable. I didn't check, but I think that variable name probably changed between versions. This change is better since we're now using only the external interface. I've also dropped the extra swap_attributes method since we're only doing this in one place, it make sense to just do it there.

@brendon brendon merged commit 1e2e37b into master May 1, 2016
@brendon brendon deleted the rails-5 branch May 1, 2016 21:24
@brendon
Copy link
Owner Author

brendon commented May 1, 2016

I've decided to merge this. Everything seems to be working.

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