aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-25 05:21:16 -0300
committerJosé Valim <jose.valim@gmail.com>2010-07-25 16:33:04 +0200
commitb1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf (patch)
tree459d52879fe866fe5321a730919a2ac6b7c55805 /actionpack/test
parent8d5b792e7dadf8b2f64b75b6fee51d15fde70699 (diff)
downloadrails-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.rb2
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