-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
DEPRECATION WARNING: named_routes.helpers
is deprecated, please use route_defined?(route_name)
to see if a named route was defined. (called from block in it_requires_authentication
#1187
Comments
Could you please add your exact RSpec, Rails, and Ruby versions? |
Looks related to #1142. Rails 4.2 support starts with rspec-rails 3.1, please make sure you're using this setup. |
I changed version from 3.0 to 3.1 and it works fine.
Tnx) |
@cupakromer do you think it would be an idea to issue a warning when using Rails 4.2 on 3.0? |
@JonRowe i would like to do something. We could put the warning in, we also could update the gemspec too. I'm not sure what's best or better long term. |
Most of the changes necessary here were test-suite-only issues. The lone production-impactful change was adding support for `ActionMailer#deliver_later` in the `PasswordsController`. This will automatically use the queue configured with Active Job in order to background the sending of email. With no queue configured, it will be delivered synchronously. The old `#deliver` method still works, but generates deprecation warnings. The rest of the changes were related to the test suite: * Add a Rails 4.2 appraisal * Update cucumber steps to remove unnecessary gems from generated apps. * Simplify appraisal dependencies thanks to the above. * Fixed `forgeries_controller_spec`. This is still a brittle way to test this functionality but at least it works across Rails versions. * Removed deprecation related to test suite ordering in the test app that is loaded. There remains a single (repeated) deprecation when running specs on 4.2 which comes from RSpec and will be addressed by upgrading to `rspec-rails` 3.1 (see [`rspec-rails` issue]. That work will be in a separate pull-request. [`rspec-rails` issue]: rspec/rspec-rails#1187
Most of the changes necessary here were test-suite-only issues. The lone production-impactful change was adding support for `ActionMailer#deliver_later` in the `PasswordsController`. This will automatically use the queue configured with Active Job in order to background the sending of email. With no queue configured, it will be delivered synchronously. The old `#deliver` method still works, but generates deprecation warnings. The rest of the changes were related to the test suite: * Add a Rails 4.2 appraisal * Update cucumber steps to remove unnecessary gems from generated apps. * Simplify appraisal dependencies thanks to the above. * Fixed `forgeries_controller_spec`. This is still a brittle way to test this functionality but at least it works across Rails versions. * Removed deprecation related to test suite ordering in the test app that is loaded. There remains a single (repeated) deprecation when running specs on 4.2 which comes from RSpec and will be addressed by upgrading to `rspec-rails` 3.1 (see [`rspec-rails` issue]. That work will be in a separate pull-request. [`rspec-rails` issue]: rspec/rspec-rails#1187
Most of the changes necessary here were test-suite-only issues. The lone production-impactful change was adding support for `ActionMailer#deliver_later` in the `PasswordsController`. This will automatically use the queue configured with Active Job in order to background the sending of email. With no queue configured, it will be delivered synchronously. The old `#deliver` method still works, but generates deprecation warnings. The rest of the changes were related to the test suite: * Add a Rails 4.2 appraisal * Update cucumber steps to remove unnecessary gems from generated apps. * Simplify appraisal dependencies thanks to the above. * Fixed `forgeries_controller_spec`. This is still a brittle way to test this functionality but at least it works across Rails versions. * Removed deprecation related to test suite ordering in the test app that is loaded. There remains a single (repeated) deprecation when running specs on 4.2 which comes from RSpec and will be addressed by upgrading to `rspec-rails` 3.1 (see [`rspec-rails` issue]. That work will be in a separate pull-request. [`rspec-rails` issue]: rspec/rspec-rails#1187
Most of the changes necessary here were test-suite-only issues. The lone production-impactful change was adding support for `ActionMailer#deliver_later` in the `PasswordsController`. This will automatically use the queue configured with Active Job in order to background the sending of email. With no queue configured, it will be delivered synchronously. The old `#deliver` method still works, but generates deprecation warnings. The rest of the changes were related to the test suite: * Add a Rails 4.2 appraisal * Update cucumber steps to remove unnecessary gems from generated apps. * Simplify appraisal dependencies thanks to the above. * Fixed `forgeries_controller_spec`. This is still a brittle way to test this functionality but at least it works across Rails versions. * Removed deprecation related to test suite ordering in the test app that is loaded. There remains a single (repeated) deprecation when running specs on 4.2 which comes from RSpec and will be addressed by upgrading to `rspec-rails` 3.1 (see [`rspec-rails` issue]. That work will be in a separate pull-request. [`rspec-rails` issue]: rspec/rspec-rails#1187
Most of the changes necessary here were test-suite-only issues. The lone production-impactful change was adding support for `ActionMailer#deliver_later` in the `PasswordsController`. This will automatically use the queue configured with Active Job in order to background the sending of email. With no queue configured, it will be delivered synchronously. The old `#deliver` method still works, but generates deprecation warnings. The rest of the changes were related to the test suite: * Add a Rails 4.2 appraisal * Update cucumber steps to remove unnecessary gems from generated apps. * Simplify appraisal dependencies thanks to the above. * Fixed `forgeries_controller_spec`. This is still a brittle way to test this functionality but at least it works across Rails versions. * Removed deprecation related to test suite ordering in the test app that is loaded. There remains a single (repeated) deprecation when running specs on 4.2 which comes from RSpec and will be addressed by upgrading to `rspec-rails` 3.1 (see [`rspec-rails` issue]. That work will be in a separate pull-request. [`rspec-rails` issue]: rspec/rspec-rails#1187
Most of the changes necessary here were test-suite-only issues. The lone production-impactful change was adding support for `ActionMailer#deliver_later` in the `PasswordsController`. This will automatically use the queue configured with Active Job in order to background the sending of email. With no queue configured, it will be delivered synchronously. The old `#deliver` method still works, but generates deprecation warnings. The rest of the changes were related to the test suite: * Add a Rails 4.2 appraisal * Update cucumber steps to remove unnecessary gems from generated apps. * Simplify appraisal dependencies thanks to the above. * Fixed `forgeries_controller_spec`. This is still a brittle way to test this functionality but at least it works across Rails versions. * Removed deprecation related to test suite ordering in the test app that is loaded. There remains a single (repeated) deprecation when running specs on 4.2 which comes from RSpec and will be addressed by upgrading to `rspec-rails` 3.1 (see [`rspec-rails` issue]. That work will be in a separate pull-request. [`rspec-rails` issue]: rspec/rspec-rails#1187
Most of the changes necessary here were test-suite-only issues. The lone production-impactful change was adding support for `ActionMailer#deliver_later` in the `PasswordsController`. This will automatically use the queue configured with Active Job in order to background the sending of email. With no queue configured, it will be delivered synchronously. The old `#deliver` method still works, but generates deprecation warnings. The rest of the changes were related to the test suite: * Add a Rails 4.2 appraisal * Update cucumber steps to remove unnecessary gems from generated apps. * Simplify appraisal dependencies thanks to the above. * Fixed `forgeries_controller_spec`. This is still a brittle way to test this functionality but at least it works across Rails versions. * Removed deprecation related to test suite ordering in the test app that is loaded. There remains a single (repeated) deprecation when running specs on 4.2 which comes from RSpec and will be addressed by upgrading to `rspec-rails` 3.1 (see [`rspec-rails` issue]. That work will be in a separate pull-request. [`rspec-rails` issue]: rspec/rspec-rails#1187
A deprecation warning on `named_routes.helpers` occurred, however, by bumping the version of `rspec-rails` to 3.1 fixed the issue (rspec/rspec-rails#1187)
is this on rspec 2 too? |
@arthurnn it is not, we are not supporting Rails 4.2 on RSpec 2. If you are looking for help upgrading to RSpec 3 check out the main upgrade guide the rails specific changes and the amazing tool transpec which automates a huge portion of the process. |
@cupakromer thanks. I will do that. |
- Bump activerecord-session_store to fix this deprecation warning: rails/activerecord-session_store#36. - Bump rspec-rails to fix this deprecation warning: rspec/rspec-rails#1187.
- Bump activerecord-session_store to fix this deprecation warning: rails/activerecord-session_store#36. - Bump rspec-rails to fix this deprecation warning: rspec/rspec-rails#1187.
- Bump `activerecord-session_store` to fix this deprecation warning: rails/activerecord-session_store#36. - Bump `rspec-rails` to fix this deprecation warning: rspec/rspec-rails#1187.
Hi guys. I wrote
rspec spec
And I had:See my /Users/vorob/Dropbox/ruby/upnetwork/spec/support/controllers/errors_helper.rb
I use
The text was updated successfully, but these errors were encountered: