aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/safe_buffer_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-26 09:24:14 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-26 09:24:14 -0800
commitef7fc6ebb3fc7688c11ee664b9748b6c0ed4eb7b (patch)
tree477852cf4ee94d2cb36abf2d46f1e8cc0e3ec2e0 /activesupport/test/safe_buffer_test.rb
parentad1b2aa4edff73268d191c0a7e00cb6bb78139f1 (diff)
downloadrails-ef7fc6ebb3fc7688c11ee664b9748b6c0ed4eb7b.tar.gz
rails-ef7fc6ebb3fc7688c11ee664b9748b6c0ed4eb7b.tar.bz2
rails-ef7fc6ebb3fc7688c11ee664b9748b6c0ed4eb7b.zip
global variables may not be set depending on the match. fixes #4703
Diffstat (limited to 'activesupport/test/safe_buffer_test.rb')
-rw-r--r--activesupport/test/safe_buffer_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/safe_buffer_test.rb b/activesupport/test/safe_buffer_test.rb
index 2fde07995b..bdde5141a9 100644
--- a/activesupport/test/safe_buffer_test.rb
+++ b/activesupport/test/safe_buffer_test.rb
@@ -7,6 +7,10 @@ class SafeBufferTest < ActiveSupport::TestCase
@buffer = ActiveSupport::SafeBuffer.new
end
+ def test_titleize
+ assert_equal 'Foo', "foo".html_safe.titleize
+ end
+
test "Should look like a string" do
assert @buffer.is_a?(String)
assert_equal "", @buffer