diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-26 00:18:52 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-26 00:18:52 -0700 |
commit | 9408fcd2e858ae48dd30d9e8d1bb1dcbbfffb840 (patch) | |
tree | c16d280b988d662041fc5834d07078d9da6f2b37 /actionpack/test/abstract_controller/helper_test.rb | |
parent | 78129b1731a1e6f3b091e996bcf55917d84b5f0e (diff) | |
download | rails-9408fcd2e858ae48dd30d9e8d1bb1dcbbfffb840.tar.gz rails-9408fcd2e858ae48dd30d9e8d1bb1dcbbfffb840.tar.bz2 rails-9408fcd2e858ae48dd30d9e8d1bb1dcbbfffb840.zip |
Create new ActionController::Middleware class that will work as a normal Rack middleware.
* This initial implementation is a bit hackish, but it uses a normal middleware API
so it's future-proof when we improve the internals.
Diffstat (limited to 'actionpack/test/abstract_controller/helper_test.rb')
-rw-r--r-- | actionpack/test/abstract_controller/helper_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/abstract_controller/helper_test.rb b/actionpack/test/abstract_controller/helper_test.rb index e9a60c0307..34a10cecc9 100644 --- a/actionpack/test/abstract_controller/helper_test.rb +++ b/actionpack/test/abstract_controller/helper_test.rb @@ -34,8 +34,9 @@ module AbstractController class TestHelpers < ActiveSupport::TestCase def test_helpers - result = MyHelpers1.new.process(:index) - assert_equal "Hello World : Included", result.response_body + controller = MyHelpers1.new + controller.process(:index) + assert_equal "Hello World : Included", controller.response_body end end |