diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-12-29 12:56:01 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-12-29 12:56:01 -0300 |
commit | 54ec0cbf8276c63215fcb4507581003bbcd1a48d (patch) | |
tree | 514bccd4729e0d76fcb8fc9f7277ea8cda8a2152 /activesupport/test/safe_buffer_test.rb | |
parent | 724707edfdedc63672284be2887484e8b65da02e (diff) | |
download | rails-54ec0cbf8276c63215fcb4507581003bbcd1a48d.tar.gz rails-54ec0cbf8276c63215fcb4507581003bbcd1a48d.tar.bz2 rails-54ec0cbf8276c63215fcb4507581003bbcd1a48d.zip |
Just check if the buffer exists before changing it
Diffstat (limited to 'activesupport/test/safe_buffer_test.rb')
-rw-r--r-- | activesupport/test/safe_buffer_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activesupport/test/safe_buffer_test.rb b/activesupport/test/safe_buffer_test.rb index fca4b45276..4532152996 100644 --- a/activesupport/test/safe_buffer_test.rb +++ b/activesupport/test/safe_buffer_test.rb @@ -168,10 +168,6 @@ class SafeBufferTest < ActiveSupport::TestCase test 'Should not affect frozen objects when accessing characters' do x = 'Hello'.html_safe - assert_nothing_raised do - x[/a/, 1] - end + assert_equal x[/a/, 1], nil end - - end |