Revision
2841
Author
lsansonetti@apple.com
Date
2009-10-17 17:34:47 -0700 (Sat, 17 Oct 2009)

Log Message

updated for 1.9

Modified Paths

Diff

Modified: MacRuby/trunk/spec/frozen/library/bigdecimal/divmod_spec.rb (2840 => 2841)


--- MacRuby/trunk/spec/frozen/library/bigdecimal/divmod_spec.rb	2009-10-18 00:34:23 UTC (rev 2840)
+++ MacRuby/trunk/spec/frozen/library/bigdecimal/divmod_spec.rb	2009-10-18 00:34:47 UTC (rev 2841)
@@ -20,7 +20,7 @@
 describe "BigDecimal#mod_part_of_divmod" do
   # BigDecimal#divmod[1] behaves exactly like #modulo
   before :all do
-    class BigDecimal
+    class ::BigDecimal
       def mod_part_of_divmod(arg)
         divmod(arg)[1]
       end
@@ -28,7 +28,7 @@
   end
 
   after :all do
-    class BigDecimal
+    class ::BigDecimal
       undef mod_part_of_divmod
     end
   end

Modified: MacRuby/trunk/spec/frozen/library/bigdecimal/inspect_spec.rb (2840 => 2841)


--- MacRuby/trunk/spec/frozen/library/bigdecimal/inspect_spec.rb	2009-10-18 00:34:23 UTC (rev 2840)
+++ MacRuby/trunk/spec/frozen/library/bigdecimal/inspect_spec.rb	2009-10-18 00:34:47 UTC (rev 2841)
@@ -11,10 +11,18 @@
     @bigdec.inspect.kind_of?(String).should == true
   end
 
-  it "returns String starting with #" do
-    @bigdec.inspect[0].should == 35
+  ruby_version_is "" ... "1.9" do
+    it "returns String starting with #" do
+      @bigdec.inspect[0].should == 35
+    end
   end
 
+  ruby_version_is "1.9" do
+    it "returns String starting with #" do
+      @bigdec.inspect[0].should == '#'
+    end
+  end
+
   it "encloses information in angle brackets" do
     @bigdec.inspect.should =~ /^.<.*>$/
   end