-
Notifications
You must be signed in to change notification settings - Fork 384
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
Gems updated resolving deprecation warnings #424
Gems updated resolving deprecation warnings #424
Conversation
Saw the travis build failed with:
The capybara gem is at 2.16.0 in Gemfile.lock. Running |
Looks like the Gemset bundled fine using my most recent commit, but the build failed because of Node v9. There is an issue about this. |
3e46217
to
270bb76
Compare
This looks solid. @Judahmeek thoughts? |
b0da2dc
to
8e1996a
Compare
8e1996a
to
09058bd
Compare
Thanks @reconstructions! |
No worries, it's the least I can do considering how awesome this is, how I can contribute more... |
Gems and syntax were updated to remove deprecation warnings in RSpec and Mocha, fix ActionCable, and migrate to the latest versions. The rails_best_practices Gem was added and slightly improved some of the Rails code quality.
RSpec Deprecation Warnings:
The following warning was thrown after every test when using
database_cleaner
version 1.5.3:Updating the gem to
database_cleaner
1.6.2 fixed this.FactoryGirl threw the following warning when running RSpec tests:
This was fixed by replacing
factory_girl_rails
with thefactory_bot_rails gem
.Mocha Deprecation Warnings:
The syntax of client/package.json line 29 resulted in the following
warning:
Revisions fixed this.
Action Cable Broken:
Action Cable was failing with the following error in the dev server logs:
As described in this rails issue, this was fixed by rolling the
redis
gem back to version 3.3.3.Gems Updated:
Most other Gems were also updated. Updating RSpec to version 3.7.1 caused the following test failures:
Rolling back to
rspec-rails
3.6.1 resolved errors one and two, which might be related to RSpec’s version 3.7 mocks.Error three appeared to result from Capybara’s
accept_confirm
method not being found. This was fixed by upgradingcapybara-webkit
to version 1.14.0 andselenium-webdriver
to version 3.7.0rails_best_practices
The following code quality issues were flagged by this gem:
The instance variable issues were revised, a rake task was added to run
rails_best_practices
, and this issue:Was left as-is with the
config/rails_best_practices.yml
set up so that it wouldn't appear when running the Gem.In a future pull request I could move this method to the
spec/support
directory, since it seems to be used only in the test suite, if desirable.This change is