aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/safe_buffer_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-09-08 05:02:47 -0700
committerXavier Noria <fxn@hashref.com>2011-09-08 05:02:47 -0700
commit827fcf453e6e81e5d95900aecbce06bb8dc59c54 (patch)
tree23f2b40826dd1a29a0669d1b326efb21402eac3a /activesupport/test/safe_buffer_test.rb
parentf7627de206f534cfddfecbb5db7ac894c724e5a8 (diff)
downloadrails-827fcf453e6e81e5d95900aecbce06bb8dc59c54.tar.gz
rails-827fcf453e6e81e5d95900aecbce06bb8dc59c54.tar.bz2
rails-827fcf453e6e81e5d95900aecbce06bb8dc59c54.zip
this should have gone with the previous commit
Diffstat (limited to 'activesupport/test/safe_buffer_test.rb')
-rw-r--r--activesupport/test/safe_buffer_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/safe_buffer_test.rb b/activesupport/test/safe_buffer_test.rb
index f8fcd44ef8..f2cd67749a 100644
--- a/activesupport/test/safe_buffer_test.rb
+++ b/activesupport/test/safe_buffer_test.rb
@@ -114,13 +114,13 @@ class SafeBufferTest < ActiveSupport::TestCase
["gsub", "sub"].each do |unavailable_method|
test "should raise on #{unavailable_method}" do
- assert_raise NoMethodError, "#{unavailable_method} cannot be used with a Safe Buffer object. You should use object.to_str.#{unavailable_method}" do
+ assert_raise NoMethodError, "#{unavailable_method} cannot be used with a safe string. You should use object.to_str.#{unavailable_method}" do
@buffer.send(unavailable_method, '', '<>')
end
end
test "should raise on #{unavailable_method}!" do
- assert_raise NoMethodError, "#{unavailable_method}! cannot be used with a Safe Buffer object. You should use object.to_str.#{unavailable_method}!" do
+ assert_raise NoMethodError, "#{unavailable_method}! cannot be used with a safe string. You should use object.to_str.#{unavailable_method}!" do
@buffer.send("#{unavailable_method}!", '', '<>')
end
end