[macruby-changes] [2841] MacRuby/trunk/spec/frozen/library/bigdecimal
source_changes at macosforge.org
source_changes at macosforge.org
Sat Oct 17 17:34:48 PDT 2009
Revision: 2841
http://trac.macosforge.org/projects/ruby/changeset/2841
Author: lsansonetti at apple.com
Date: 2009-10-17 17:34:47 -0700 (Sat, 17 Oct 2009)
Log Message:
-----------
updated for 1.9
Modified Paths:
--------------
MacRuby/trunk/spec/frozen/library/bigdecimal/divmod_spec.rb
MacRuby/trunk/spec/frozen/library/bigdecimal/inspect_spec.rb
Modified: MacRuby/trunk/spec/frozen/library/bigdecimal/divmod_spec.rb
===================================================================
--- 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
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091017/11adaba5/attachment.html>
More information about the macruby-changes
mailing list