aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/base_test.rb
diff options
context:
space:
mode:
authorMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-05-28 15:13:32 +0300
committerMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-05-28 15:13:32 +0300
commit44781b6e9790d90b4f8b9a41d2b2c114b1a582ee (patch)
treeaa55b3f69aee623a1088398f2bbb1f4b191f20a4 /actionpack/test/controller/base_test.rb
parent7cc9754209c0ae00d70bdd629fa4a81a1c74cc6f (diff)
downloadrails-44781b6e9790d90b4f8b9a41d2b2c114b1a582ee.tar.gz
rails-44781b6e9790d90b4f8b9a41d2b2c114b1a582ee.tar.bz2
rails-44781b6e9790d90b4f8b9a41d2b2c114b1a582ee.zip
Deprecate `:nothing` option for render method
`head` method works similar to `render` method with `:nothing` option
Diffstat (limited to 'actionpack/test/controller/base_test.rb')
-rw-r--r--actionpack/test/controller/base_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/base_test.rb b/actionpack/test/controller/base_test.rb
index f7ad8e5158..3240185414 100644
--- a/actionpack/test/controller/base_test.rb
+++ b/actionpack/test/controller/base_test.rb
@@ -13,7 +13,7 @@ end
class NonEmptyController < ActionController::Base
def public_action
- render :nothing => true
+ head :ok
end
end
@@ -29,7 +29,7 @@ end
class OptionalDefaultUrlOptionsController < ActionController::Base
def show
- render nothing: true
+ head :ok
end
def default_url_options