aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2017-02-09 16:28:16 -0500
committerGitHub <noreply@github.com>2017-02-09 16:28:16 -0500
commitcabb212976703dac46bacc36addf70a232e96e71 (patch)
tree23ce2f0927dd9699ecd52fa42ceb644d8fa66e38 /guides/source/upgrading_ruby_on_rails.md
parentd6529af2954a67bd57fda45286fa9cfd0ff6b5ac (diff)
parente3dae16d5fc2550dece9767f5ee28a8375e6a0b3 (diff)
downloadrails-cabb212976703dac46bacc36addf70a232e96e71.tar.gz
rails-cabb212976703dac46bacc36addf70a232e96e71.tar.bz2
rails-cabb212976703dac46bacc36addf70a232e96e71.zip
Merge pull request #27954 from maclover7/jm-fix-26404
Add note about breakage in file uploads in controller tests to upgrading guide
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-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 a9ec34098a..8ba00a2b10 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