From 54c003f99395612b96b1edadc7e3b21035db1d1b Mon Sep 17 00:00:00 2001
From: Gaston Ramos <ramos.gaston@gmail.com>
Date: Tue, 20 May 2008 02:59:18 -0300
Subject: [PATCH] cleanup of Hash#clear specs

---
 1.8/core/hash/clear_spec.rb |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/1.8/core/hash/clear_spec.rb b/1.8/core/hash/clear_spec.rb
index 596e7d9..9b1db27 100644
--- a/1.8/core/hash/clear_spec.rb
+++ b/1.8/core/hash/clear_spec.rb
@@ -8,11 +8,18 @@ describe "Hash#clear" do
     h.should == {}
   end

-  it "does not remove default values and procs" do
+  it "does not remove default values" do
     h = Hash.new(5)
     h.clear
     h.default.should == 5

+    h = { "a" => 100, "b" => 200 }
+    h.default = "Go fish"
+    h.clear
+    h["z"].should == "Go fish"
+  end
+
+  it "does not remove default procs" do
     h = Hash.new { 5 }
     h.clear
     h.default_proc.should_not == nil
--
1.5.5.1

