aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/capture_helper_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2014-12-14 09:35:49 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2014-12-14 09:35:49 -0200
commit870519395f4adfcfe35054b76d3db24662871569 (patch)
tree676af19038f69e418d8bd168b4158f1b1e4efb43 /actionview/test/template/capture_helper_test.rb
parentef99d4cd3ecc58a8c1484740b2fb5447dbda23ab (diff)
parentc2fe0938d7201d4ce0bb2f25e72bf5f70df128af (diff)
downloadrails-870519395f4adfcfe35054b76d3db24662871569.tar.gz
rails-870519395f4adfcfe35054b76d3db24662871569.tar.bz2
rails-870519395f4adfcfe35054b76d3db24662871569.zip
Merge pull request #18024 from carpodaster/fix/actionview/capture-non-strings
Re-enable capture'ing non-String values
Diffstat (limited to 'actionview/test/template/capture_helper_test.rb')
-rw-r--r--actionview/test/template/capture_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/capture_helper_test.rb b/actionview/test/template/capture_helper_test.rb
index f213da5934..b2b8513d4f 100644
--- a/actionview/test/template/capture_helper_test.rb
+++ b/actionview/test/template/capture_helper_test.rb
@@ -24,8 +24,8 @@ class CaptureHelperTest < ActionView::TestCase
assert_equal 'foobar', string
end
- def test_capture_returns_nil_if_the_returned_value_is_not_a_string
- assert_nil @av.capture { 1 }
+ def test_capture_returns_value_even_if_the_returned_value_is_not_a_string
+ assert_equal '1', @av.capture { 1 }
end
def test_capture_escapes_html