diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-25 05:21:16 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-25 16:33:04 +0200 |
commit | b1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf (patch) | |
tree | 459d52879fe866fe5321a730919a2ac6b7c55805 /actionpack/test | |
parent | 8d5b792e7dadf8b2f64b75b6fee51d15fde70699 (diff) | |
download | rails-b1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf.tar.gz rails-b1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf.tar.bz2 rails-b1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf.zip |
Change returning with tap
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/capture_helper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/capture_helper_test.rb b/actionpack/test/template/capture_helper_test.rb index 9f3d68a639..f7c42c7f22 100644 --- a/actionpack/test/template/capture_helper_test.rb +++ b/actionpack/test/template/capture_helper_test.rb @@ -114,7 +114,7 @@ class CaptureHelperTest < ActionView::TestCase end def view_with_controller - returning(TestController.new.view_context) do |view| + TestController.new.view_context.tap do |view| view.output_buffer = ActionView::OutputBuffer.new end end |