diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-10-29 15:40:18 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-10-29 15:40:18 -0700 |
commit | 9f93a5efbba3e1cbf0bfa700a17ec8d1ef60d7c6 (patch) | |
tree | 9c91fe67a742deb6ae7b5eb7a74dbfdedc4f8930 /actionpack/test/abstract | |
parent | 82328a563f24ff52ce2c5f9966fea9f38184820f (diff) | |
download | rails-9f93a5efbba3e1cbf0bfa700a17ec8d1ef60d7c6.tar.gz rails-9f93a5efbba3e1cbf0bfa700a17ec8d1ef60d7c6.tar.bz2 rails-9f93a5efbba3e1cbf0bfa700a17ec8d1ef60d7c6.zip |
ActionController::Base#process() now only takes an action name
rather than an action name and *args. The *args were not being used in regular
applications outside tests. This causes a backwards compatibility
issue, but reduces array allocations for most users.
Diffstat (limited to 'actionpack/test/abstract')
-rw-r--r-- | actionpack/test/abstract/callbacks_test.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/actionpack/test/abstract/callbacks_test.rb b/actionpack/test/abstract/callbacks_test.rb index 07571602e4..b47aeaa08f 100644 --- a/actionpack/test/abstract/callbacks_test.rb +++ b/actionpack/test/abstract/callbacks_test.rb @@ -246,26 +246,6 @@ module AbstractController end end - class CallbacksWithArgs < ControllerWithCallbacks - set_callback :process_action, :before, :first - - def first - @text = "Hello world" - end - - def index(text) - self.response_body = @text + text - end - end - - class TestCallbacksWithArgs < ActiveSupport::TestCase - test "callbacks still work when invoking process with multiple arguments" do - controller = CallbacksWithArgs.new - controller.process(:index, " Howdy!") - assert_equal "Hello world Howdy!", controller.response_body - end - end - class AliasedCallbacks < ControllerWithCallbacks ActiveSupport::Deprecation.silence do before_filter :first |