aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2017-02-09 15:50:29 -0500
committerJon Moss <me@jonathanmoss.me>2017-02-09 15:50:29 -0500
commite3dae16d5fc2550dece9767f5ee28a8375e6a0b3 (patch)
treef913c46c62965aa09a4f2f3a6bd7f78be91c8a7e /guides
parentb9ae7481fd5653fc6430148f06e0fca27317829e (diff)
downloadrails-e3dae16d5fc2550dece9767f5ee28a8375e6a0b3.tar.gz
rails-e3dae16d5fc2550dece9767f5ee28a8375e6a0b3.tar.bz2
rails-e3dae16d5fc2550dece9767f5ee28a8375e6a0b3.zip
Add note about breakage in file uploads in controller tests to upgrading
guide ref #26404 [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 8a3b3b84b4..395022681a 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -140,6 +140,8 @@ See [#19034](https://github.com/rails/rails/pull/19034) for more details.
### Rails Controller Testing
+#### Extraction of some helper methods to `rails-controller-testing`
+
`assigns` and `assert_template` have been extracted to the `rails-controller-testing` gem. To
continue using these methods in your controller tests, add `gem 'rails-controller-testing'` to
your Gemfile.
@@ -147,6 +149,14 @@ your Gemfile.
If you are using Rspec for testing, please see the extra configuration required in the gem's
documentation.
+#### New behavior when uploading files
+
+If you are using `ActionDispatch::Http::UploadedFile` in your tests to
+upload files, you will need to change to use the similar `Rack::Test::UploadedFile`
+class instead.
+
+See [#26404](https://github.com/rails/rails/issues/26404) for more details.
+
### Autoloading is Disabled After Booting in the Production Environment
Autoloading is now disabled after booting in the production environment by