From da46ac9c56fd4602fb2251c9b8bffbd5e69bbac3 Mon Sep 17 00:00:00 2001
From: Jim Deville <jdeville@microsoft.com>
Date: Thu, 10 Jul 2008 12:33:37 -0700
Subject: [PATCH] modified hash spec guards to include IronRuby

---
 1.8/core/hash/clear_spec.rb     |    2 +-
 1.8/core/hash/shared/replace.rb |    2 +-
 1.8/core/hash/shared/store.rb   |    2 +-
 1.8/core/hash/shared/update.rb  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/1.8/core/hash/clear_spec.rb b/1.8/core/hash/clear_spec.rb
index 9b1db27..8e21e4b 100644
--- a/1.8/core/hash/clear_spec.rb
+++ b/1.8/core/hash/clear_spec.rb
@@ -25,7 +25,7 @@ describe "Hash#clear" do
     h.default_proc.should_not == nil
   end
 
-  compliant_on :ruby, :jruby do
+  compliant_on :ruby, :jruby, :ir do
     it "raises a TypeError if called on a frozen instance" do
       lambda { HashSpecs.frozen_hash.clear  }.should raise_error(TypeError)
       lambda { HashSpecs.empty_frozen_hash.clear }.should raise_error(TypeError)
diff --git a/1.8/core/hash/shared/replace.rb b/1.8/core/hash/shared/replace.rb
index 4c38e26..466f422 100644
--- a/1.8/core/hash/shared/replace.rb
+++ b/1.8/core/hash/shared/replace.rb
@@ -48,7 +48,7 @@ shared :hash_replace do |cmd|
       hash_a.default.should == hash_b.default
     end
 
-    compliant_on :ruby, :jruby do
+    compliant_on :ruby, :jruby, :ir do
       it "raises a TypeError if called on a frozen instance" do
         HashSpecs.frozen_hash.send(cmd, HashSpecs.frozen_hash) # ok, nothing changed
         block = lambda { HashSpecs.frozen_hash.send(cmd, HashSpecs.empty_frozen_hash) }
diff --git a/1.8/core/hash/shared/store.rb b/1.8/core/hash/shared/store.rb
index 7831c36..50b3a9e 100644
--- a/1.8/core/hash/shared/store.rb
+++ b/1.8/core/hash/shared/store.rb
@@ -28,7 +28,7 @@ shared :hash_store do |cmd|
       h.size.should == 2
     end
 
-    compliant_on :ruby, :jruby do
+    compliant_on :ruby, :jruby, :ir do
       it "duplicates and freezes string keys" do
         key = "foo"
         h = {}
diff --git a/1.8/core/hash/shared/update.rb b/1.8/core/hash/shared/update.rb
index 7daf78d..bb1b3db 100644
--- a/1.8/core/hash/shared/update.rb
+++ b/1.8/core/hash/shared/update.rb
@@ -42,7 +42,7 @@ shared :hash_update do |cmd|
       merge_bang_pairs.should == merge_pairs
     end
 
-    compliant_on :ruby do
+    compliant_on :ruby, :ir do
       it "raises a TypeError if called on a non-empty, frozen instance" do
         HashSpecs.frozen_hash.send(cmd, HashSpecs.empty_frozen_hash) # ok, empty
         lambda { HashSpecs.frozen_hash.send(cmd, 1 => 2) }.should raise_error(TypeError)
-- 
1.5.5.1015.g9d258

