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:45 -0800
commit7ba3ecca341a7d770738274f78fb85d3e7695619 (patch)
tree3d14a11ec0fcb9f1a5c54b1763fb0572bf617216 /activesupport/test/safe_buffer_test.rb
parent280937578b14b06bcb8b92f13d7243eadc890de7 (diff)
downloadrails-7ba3ecca341a7d770738274f78fb85d3e7695619.tar.gz
rails-7ba3ecca341a7d770738274f78fb85d3e7695619.tar.bz2
rails-7ba3ecca341a7d770738274f78fb85d3e7695619.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 8f77999d25..db9159b289 100644
--- a/activesupport/test/safe_buffer_test.rb
+++ b/activesupport/test/safe_buffer_test.rb
@@ -12,6 +12,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