aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-06-23 12:59:56 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-06-23 18:17:37 +0530
commitdeb60a738cb887a4c4cfc8f7148b0a1be6123e77 (patch)
treeb348603c48cf108414f18cb2f248a2235794b0ca /activesupport
parent87b548ccac8fd9b384a024a1374a2474e7c4d604 (diff)
downloadrails-deb60a738cb887a4c4cfc8f7148b0a1be6123e77.tar.gz
rails-deb60a738cb887a4c4cfc8f7148b0a1be6123e77.tar.bz2
rails-deb60a738cb887a4c4cfc8f7148b0a1be6123e77.zip
Using slice for instead of gsub to pass with 1.8.7
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/safe_buffer_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/safe_buffer_test.rb b/activesupport/test/safe_buffer_test.rb
index 08cc00ac51..46bc0d7a34 100644
--- a/activesupport/test/safe_buffer_test.rb
+++ b/activesupport/test/safe_buffer_test.rb
@@ -106,6 +106,6 @@ class SafeBufferTest < ActiveSupport::TestCase
end
test "should not fail if the returned object is not a string" do
- assert_kind_of Enumerator, @buffer.gsub(/.*/)
+ assert_kind_of NilClass, @buffer.slice("chipchop")
end
end