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

Upgrade test suite to use Rails 5 #981

Merged
merged 13 commits into from
Oct 15, 2017
Merged

Conversation

lynndylanhurley
Copy link
Owner

@lynndylanhurley lynndylanhurley commented Oct 14, 2017

I apologize for this massive PR. Rails 5 changed the test request format and it resulted in a ton of changes to the test suite.

Notable changes:

  • Update requests in test suite to new format
  • Update test runner dependencies
  • Version the migrations in the test dummy app
  • Lint most (but not all) of the test suite with rubocop

A few bugs were revealed (and fixed) as a result of this update:

  • An omniauth callback was using render: :nothing, which is no longer supported in Rails 5
  • Devise was performing validations that conflict with omniauth functionality
  • A recent PR (Fix Warnings in Test Suite Output #976) broke registration for users that don't use :confirmable
  • The issue addressed by Persist allow_password_change in the database #863 now throws an error (this is the one failing test). I may merge that PR into this one to see if it gets the tests passing

@lynndylanhurley
Copy link
Owner Author

Cool, looks like #863 fixes the password reset issue.

@zachfeldman @MaicolBen please take a look when you get a chance. this PR resolves a bunch of issues, but I'm gonna need another day or two to test with clients before cutting a release (#972).

@zachfeldman
Copy link
Contributor

This is a lot!

I scanned through and didn't see anything too crazy. Way to update past hash rocket hashes :).

Considering this PR is from the author of the gem, and tests are passing, I'm inclined to merge it. Regressions will be evident on the next release and we're paying close attention to the issue tracker if people have problems.

I'm going to approve this PR.

@zachfeldman zachfeldman self-requested a review October 14, 2017 14:32
Copy link
Collaborator

@MaicolBen MaicolBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!! You can merge it

@lynndylanhurley lynndylanhurley merged commit ae87cae into master Oct 15, 2017
@jduff jduff mentioned this pull request Oct 30, 2017
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.

4 participants