From deb60a738cb887a4c4cfc8f7148b0a1be6123e77 Mon Sep 17 00:00:00 2001
From: Arun Agrawal <arun@fromjaipur.com>
Date: Thu, 23 Jun 2011 12:59:56 +0530
Subject: Using slice for instead of gsub to pass with 1.8.7

---
 activesupport/test/safe_buffer_test.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'activesupport')

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
-- 
cgit v1.2.3