[macruby-changes] [3873] MacRuby/trunk/spec/frozen/shared

source_changes at macosforge.org source_changes at macosforge.org
Sun Mar 28 12:54:41 PDT 2010


Revision: 3873
          http://trac.macosforge.org/projects/ruby/changeset/3873
Author:   eloy.de.enige at gmail.com
Date:     2010-03-28 12:54:40 -0700 (Sun, 28 Mar 2010)
Log Message:
-----------
Update RubySpec to 1d137b699c813be4d9f1f2728d68b44ab52ec36a (part 3)

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/shared/complex/Complex.rb
    MacRuby/trunk/spec/frozen/shared/complex/abs.rb
    MacRuby/trunk/spec/frozen/shared/complex/abs2.rb
    MacRuby/trunk/spec/frozen/shared/complex/coerce.rb
    MacRuby/trunk/spec/frozen/shared/complex/denominator.rb
    MacRuby/trunk/spec/frozen/shared/complex/divide.rb
    MacRuby/trunk/spec/frozen/shared/complex/equal_value.rb
    MacRuby/trunk/spec/frozen/shared/complex/exponent.rb
    MacRuby/trunk/spec/frozen/shared/complex/hash.rb
    MacRuby/trunk/spec/frozen/shared/complex/image.rb
    MacRuby/trunk/spec/frozen/shared/complex/minus.rb
    MacRuby/trunk/spec/frozen/shared/complex/modulo.rb
    MacRuby/trunk/spec/frozen/shared/complex/numerator.rb
    MacRuby/trunk/spec/frozen/shared/complex/numeric/arg.rb
    MacRuby/trunk/spec/frozen/shared/complex/numeric/conj.rb
    MacRuby/trunk/spec/frozen/shared/complex/numeric/imag.rb
    MacRuby/trunk/spec/frozen/shared/complex/numeric/polar.rb
    MacRuby/trunk/spec/frozen/shared/complex/numeric/real.rb
    MacRuby/trunk/spec/frozen/shared/complex/plus.rb
    MacRuby/trunk/spec/frozen/shared/complex/polar.rb
    MacRuby/trunk/spec/frozen/shared/complex/rect.rb
    MacRuby/trunk/spec/frozen/shared/complex/to_s.rb
    MacRuby/trunk/spec/frozen/shared/enumerator/enum_cons.rb
    MacRuby/trunk/spec/frozen/shared/enumerator/enum_for.rb
    MacRuby/trunk/spec/frozen/shared/enumerator/new.rb
    MacRuby/trunk/spec/frozen/shared/enumerator/next.rb
    MacRuby/trunk/spec/frozen/shared/enumerator/rewind.rb
    MacRuby/trunk/spec/frozen/shared/enumerator/with_index.rb
    MacRuby/trunk/spec/frozen/shared/enumerator/with_object.rb
    MacRuby/trunk/spec/frozen/shared/file/executable_real.rb
    MacRuby/trunk/spec/frozen/shared/file/grpowned.rb
    MacRuby/trunk/spec/frozen/shared/file/identical.rb
    MacRuby/trunk/spec/frozen/shared/file/sticky.rb
    MacRuby/trunk/spec/frozen/shared/file/world_readable.rb
    MacRuby/trunk/spec/frozen/shared/file/world_writable.rb
    MacRuby/trunk/spec/frozen/shared/kernel/method_missing.rb
    MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_added.rb
    MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_removed.rb
    MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_undefined.rb
    MacRuby/trunk/spec/frozen/shared/rational/Rational.rb
    MacRuby/trunk/spec/frozen/shared/rational/abs.rb
    MacRuby/trunk/spec/frozen/shared/rational/ceil.rb
    MacRuby/trunk/spec/frozen/shared/rational/coerce.rb
    MacRuby/trunk/spec/frozen/shared/rational/comparison.rb
    MacRuby/trunk/spec/frozen/shared/rational/denominator.rb
    MacRuby/trunk/spec/frozen/shared/rational/div.rb
    MacRuby/trunk/spec/frozen/shared/rational/divide.rb
    MacRuby/trunk/spec/frozen/shared/rational/divmod.rb
    MacRuby/trunk/spec/frozen/shared/rational/equal_value.rb
    MacRuby/trunk/spec/frozen/shared/rational/exponent.rb
    MacRuby/trunk/spec/frozen/shared/rational/fdiv.rb
    MacRuby/trunk/spec/frozen/shared/rational/floor.rb
    MacRuby/trunk/spec/frozen/shared/rational/hash.rb
    MacRuby/trunk/spec/frozen/shared/rational/initialize.rb
    MacRuby/trunk/spec/frozen/shared/rational/inspect.rb
    MacRuby/trunk/spec/frozen/shared/rational/marshal_dump.rb
    MacRuby/trunk/spec/frozen/shared/rational/marshal_load.rb
    MacRuby/trunk/spec/frozen/shared/rational/minus.rb
    MacRuby/trunk/spec/frozen/shared/rational/modulo.rb
    MacRuby/trunk/spec/frozen/shared/rational/multiply.rb
    MacRuby/trunk/spec/frozen/shared/rational/new.rb
    MacRuby/trunk/spec/frozen/shared/rational/numerator.rb
    MacRuby/trunk/spec/frozen/shared/rational/plus.rb
    MacRuby/trunk/spec/frozen/shared/rational/quo.rb
    MacRuby/trunk/spec/frozen/shared/rational/reduce.rb
    MacRuby/trunk/spec/frozen/shared/rational/remainder.rb
    MacRuby/trunk/spec/frozen/shared/rational/round.rb
    MacRuby/trunk/spec/frozen/shared/rational/to_f.rb
    MacRuby/trunk/spec/frozen/shared/rational/to_i.rb
    MacRuby/trunk/spec/frozen/shared/rational/to_r.rb
    MacRuby/trunk/spec/frozen/shared/rational/to_s.rb
    MacRuby/trunk/spec/frozen/shared/rational/truncate.rb

Added Paths:
-----------
    MacRuby/trunk/spec/frozen/shared/continuation/
    MacRuby/trunk/spec/frozen/shared/continuation/call.rb
    MacRuby/trunk/spec/frozen/shared/continuation/new.rb
    MacRuby/trunk/spec/frozen/shared/fiber/
    MacRuby/trunk/spec/frozen/shared/fiber/resume.rb
    MacRuby/trunk/spec/frozen/shared/kernel/callcc.rb
    MacRuby/trunk/spec/frozen/shared/math/
    MacRuby/trunk/spec/frozen/shared/math/atanh.rb

Modified: MacRuby/trunk/spec/frozen/shared/complex/Complex.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/Complex.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/Complex.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_Complex_complex_complex, :shared => true do
   it "returns a new Complex number based on the two given numbers" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/abs.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/abs.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/abs.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_abs, :shared => true do
   it "returns the modulus: |a + bi| = sqrt((a ^ 2) + (b ^ 2))" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/abs2.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/abs2.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/abs2.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_abs2, :shared => true do
   it "returns the sum of the squares of the real and imaginary parts" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/coerce.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/coerce.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/coerce.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_coerce, :shared => true do
   before(:each) do

Modified: MacRuby/trunk/spec/frozen/shared/complex/denominator.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/denominator.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/denominator.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_denominator, :shared => true do
   it "returns the least common multiple denominator of the real and imaginary parts" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/divide.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/divide.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/divide.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_divide_complex, :shared => true do
   it "divides according to the usual rule for complex numbers" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/equal_value.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/equal_value.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/equal_value.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_equal_value_complex, :shared => true do
   it "returns true when self and other have numerical equality" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/exponent.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/exponent.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/exponent.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_exponent_zero, :shared => true do
   it "returns Complex(1)" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/hash.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/hash.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/hash.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_hash, :shared => true do
   # NOTE:

Modified: MacRuby/trunk/spec/frozen/shared/complex/image.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/image.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/image.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_image, :shared => true do
   it "returns the imaginary part of self" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/minus.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/minus.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/minus.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_minus_complex, :shared => true do
   it "subtracts both the real and imaginary components" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/modulo.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/modulo.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/modulo.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_modulo_complex, :shared => true do
   it "returns the remainder from complex division" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/numerator.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/numerator.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/numerator.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_numerator, :shared => true do
   it "returns self's numerator" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/numeric/arg.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/numeric/arg.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/numeric/arg.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
 
 describe :numeric_arg, :shared => true do
   before(:each) do

Modified: MacRuby/trunk/spec/frozen/shared/complex/numeric/conj.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/numeric/conj.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/numeric/conj.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
 
 describe :numeric_conj, :shared => true do
   before(:each) do

Modified: MacRuby/trunk/spec/frozen/shared/complex/numeric/imag.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/numeric/imag.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/numeric/imag.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
 
 describe :numeric_imag, :shared => true do
   before(:each) do

Modified: MacRuby/trunk/spec/frozen/shared/complex/numeric/polar.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/numeric/polar.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/numeric/polar.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
 
 describe :numeric_polar, :shared => true do
   before(:each) do

Modified: MacRuby/trunk/spec/frozen/shared/complex/numeric/real.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/numeric/real.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/numeric/real.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.expand_path('../../../../spec_helper', __FILE__)
 
 describe :numeric_real, :shared => true do
   before(:each) do

Modified: MacRuby/trunk/spec/frozen/shared/complex/plus.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/plus.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/plus.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_plus_complex, :shared => true do
   it "adds both the real and imaginary components" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/polar.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/polar.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/polar.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_polar_class, :shared => true do
   it "returns a complex number in terms of radius and angle" do

Modified: MacRuby/trunk/spec/frozen/shared/complex/rect.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/rect.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/rect.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_rect, :shared => true do
   before(:each) do

Modified: MacRuby/trunk/spec/frozen/shared/complex/to_s.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/complex/to_s.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/complex/to_s.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :complex_to_s_0, :shared => true do
   ruby_version_is ""..."1.9" do

Added: MacRuby/trunk/spec/frozen/shared/continuation/call.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/continuation/call.rb	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/shared/continuation/call.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -0,0 +1,76 @@
+describe :continuation_call, :shared => true do
+  # TODO: fix these specs
+
+  it "using #call transfers execution to right after the Kernel.callcc block" do
+    array = [:reached, :not_reached]
+
+    cont = callcc { |cc| cc }
+
+    unless array.first == :not_reached
+      array.shift
+      cont.call
+    end
+
+    array.should == [:not_reached]
+  end
+
+  it "arguments given to #call (or nil) are returned by the Kernel.callcc block (as Array unless only one object)" do
+    Kernel.callcc {|cc| cc.call}.should == nil
+    Kernel.callcc {|cc| cc.call 1}.should == 1
+    Kernel.callcc {|cc| cc.call 1, 2, 3}.should == [1, 2, 3]
+  end
+
+  it "#[] is an alias for #call" do
+    Kernel.callcc {|cc| cc.call}.should == Kernel.callcc {|cc| cc[]}
+    Kernel.callcc {|cc| cc.call 1}.should == Kernel.callcc {|cc| cc[1]}
+    Kernel.callcc {|cc| cc.call 1, 2, 3}.should == Kernel.callcc {|cc| cc[1, 2, 3]}
+  end
+
+  it "closes over lexical environments" do
+    o = Object.new
+    def o.f; a = 1; Kernel.callcc {|c| a = 2; c.call }; a; end
+    o.f().should == 2
+  end
+
+  it "escapes an inner ensure block" do
+    a = []
+    cont = nil
+    a << :pre_callcc
+    Kernel.callcc do |cc|
+      a << :in_callcc
+      cont = cc
+    end
+    a << :post_callcc
+    unless a.include? :pre_call
+      begin
+        a << :pre_call
+        cont.call
+        a << :post_call
+      ensure
+        a << :ensure
+      end
+    end
+    a.should == [:pre_callcc,:in_callcc,:post_callcc,:pre_call,:post_callcc]
+  end
+
+  it "executes an outer ensure block" do
+    a = []
+    cont = nil
+    begin
+      a << :pre_callcc
+      Kernel.callcc do |cc|
+        a << :in_callcc
+        cont = cc
+      end
+      a << :post_callcc
+      unless a.include? :pre_call
+        a << :pre_call
+        cont.call
+        a << :post_call
+      end
+    ensure
+      a << :ensure
+    end
+    a.should == [:pre_callcc,:in_callcc,:post_callcc,:pre_call,:post_callcc,:ensure]
+  end
+end

Added: MacRuby/trunk/spec/frozen/shared/continuation/new.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/continuation/new.rb	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/shared/continuation/new.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -0,0 +1,5 @@
+describe :continuation_new, :shared => true do
+  it "raises a NoMethodError" do
+    lambda { Continuation.new }.should raise_error(NoMethodError)
+  end
+end

Modified: MacRuby/trunk/spec/frozen/shared/enumerator/enum_cons.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/enumerator/enum_cons.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/enumerator/enum_cons.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,12 +1,12 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/../../fixtures/enumerator/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../../../fixtures/enumerator/classes', __FILE__)
 
 describe :enum_cons, :shared => true do
   it "returns an enumerator of the receiver with iteration of each_cons for each array of n concecutive elements" do
     a = []
     enum = EnumSpecs::Numerous.new.enum_cons(3)
     enum.each {|x| a << x}
-    enum.should be_kind_of(enumerator_class)
+    enum.should be_an_instance_of(enumerator_class)
     a.should == [[2, 5, 3], [5, 3, 6], [3, 6, 1], [6, 1, 4]]
   end
 end

Modified: MacRuby/trunk/spec/frozen/shared/enumerator/enum_for.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/enumerator/enum_for.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/enumerator/enum_for.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -5,7 +5,7 @@
   end
 
   it "returns a new enumerator" do
-    "abc".send(@method).should be_kind_of(enumerator_class)
+    "abc".send(@method).should be_an_instance_of(enumerator_class)
   end
 
   it "defaults the first argument to :each" do

Modified: MacRuby/trunk/spec/frozen/shared/enumerator/new.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/enumerator/new.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/enumerator/new.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,9 +1,9 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :enum_new, :shared => true do
   it "creates a new custom enumerator with the given object, iterator and arguments" do
     enum = enumerator_class.new(1, :upto, 3)
-    enum.should be_kind_of(enumerator_class)
+    enum.should be_an_instance_of(enumerator_class)
   end
 
   it "creates a new custom enumerator that responds to #each" do
@@ -20,7 +20,7 @@
   end
   
   it "doesn't check for the presence of the iterator method" do
-    enumerator_class.new(nil).should be_kind_of(enumerator_class)
+    enumerator_class.new(nil).should be_an_instance_of(enumerator_class)
   end
 
   it "uses the latest define iterator method" do

Modified: MacRuby/trunk/spec/frozen/shared/enumerator/next.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/enumerator/next.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/enumerator/next.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :enum_next, :shared => true do
 

Modified: MacRuby/trunk/spec/frozen/shared/enumerator/rewind.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/enumerator/rewind.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/enumerator/rewind.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :enum_rewind, :shared => true do
 

Modified: MacRuby/trunk/spec/frozen/shared/enumerator/with_index.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/enumerator/with_index.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/enumerator/with_index.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,8 +1,8 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :enum_with_index, :shared => true do
 
-  require File.dirname(__FILE__) + '/../../fixtures/enumerator/classes'
+  require File.expand_path('../../../fixtures/enumerator/classes', __FILE__)
   
   before :each do
     @enum = [1, 2, 3, 4].to_enum
@@ -27,7 +27,7 @@
   ruby_version_is '1.8.7' do
     it "returns an enumerator if no block is supplied" do 
       ewi = @enum.send(@method)
-      ewi.should be_kind_of(enumerator_class)
+      ewi.should be_an_instance_of(enumerator_class)
       ewi.to_a.should == [[1, 0], [2, 1], [3, 2], [4, 3]]
     end    
   end

Modified: MacRuby/trunk/spec/frozen/shared/enumerator/with_object.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/enumerator/with_object.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/enumerator/with_object.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,8 +1,8 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :enum_with_object, :shared => true do
   it "returns an enumerator when not given a block" do
-    [].to_enum.send(@method, '').should be_an_instance_of(Enumerator)
+    [].to_enum.send(@method, '').should be_an_instance_of(enumerator_class)
   end
 
   it "returns the given object when given a block" do
@@ -16,4 +16,4 @@
     
     expected.should == 'wadus wadus '
   end
-end
\ No newline at end of file
+end

Added: MacRuby/trunk/spec/frozen/shared/fiber/resume.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/fiber/resume.rb	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/shared/fiber/resume.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -0,0 +1,65 @@
+describe :fiber_resume, :shared => :true do
+  it "can be invoked from the root Fiber" do
+   fiber = Fiber.new { :fiber }
+   fiber.send(@method).should == :fiber
+  end
+
+  it "passes control to the beginning of the block on first invocation" do
+    invoked = false
+    fiber = Fiber.new { invoked = true }
+    fiber.send(@method)
+    invoked.should be_true
+  end
+
+  it "returns the last value encountered on first invocation" do
+    fiber = Fiber.new { false; true }
+    fiber.send(@method).should be_true
+  end
+
+  it "runs until the end of the block or Fiber.yield on first invocation" do
+    obj = mock('obj')
+    obj.should_receive(:do).once
+    fiber = Fiber.new { 1 + 2; a = "glark"; obj.do }
+    fiber.send(@method)
+
+    obj = mock('obj')
+    obj.should_not_receive(:do)
+    fiber = Fiber.new { 1 + 2; Fiber.yield; obj.do }
+    fiber.send(@method)
+  end
+
+  it "resumes from the last call to Fiber.yield on subsequent invocations" do
+    fiber = Fiber.new { Fiber.yield :first; :second }
+    fiber.send(@method).should == :first
+    fiber.send(@method).should == :second
+  end
+
+  it "accepts any number of arguments" do
+    fiber = Fiber.new { |a| }
+    lambda { fiber.send(@method, *(1..10).to_a) }.should_not raise_error
+  end
+
+  it "sets the block parameters to its arguments on the first invocation" do
+    first = mock('first')
+    first.should_receive(:arg).with(:first).twice
+    fiber = Fiber.new { |arg| first.arg arg; Fiber.yield; first.arg arg; }
+    fiber.send(@method, :first)
+    fiber.send(@method, :second)
+  end
+
+  it "raises a FiberError if the Fiber is dead" do
+    fiber = Fiber.new { true }
+    fiber.send(@method)
+    lambda { fiber.send(@method) }.should raise_error(FiberError)
+  end
+
+  it "raises a LocalJumpError if the block includes a return statement" do
+    fiber = Fiber.new { return; }
+    lambda { fiber.send(@method) }.should raise_error(LocalJumpError)
+  end
+
+  it "raises a LocalJumpError if the block includes a break statement" do
+    fiber = Fiber.new { break; }
+    lambda { fiber.send(@method) }.should raise_error(LocalJumpError)
+  end
+end

Modified: MacRuby/trunk/spec/frozen/shared/file/executable_real.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/file/executable_real.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/file/executable_real.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,6 +1,6 @@
 describe :file_executable_real, :shared => true do
   before :each do
-    @file1 = tmp('temp1.txt')
+    @file1 = tmp('temp1.txt.exe')
     @file2 = tmp('temp2.txt')
 
     touch @file1

Modified: MacRuby/trunk/spec/frozen/shared/file/grpowned.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/file/grpowned.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/file/grpowned.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,7 +1,7 @@
 describe :file_grpowned, :shared => true do
   before :each do
     @file = tmp('i_exist')
-    @fh = File.open(@file,'w') { |f| f.write 'rubinius' }
+    touch(@file) { |f| f.puts "file_content" }
     File.chown(nil, Process.gid, @file) rescue nil
   end
 
@@ -10,20 +10,20 @@
   end
 
   platform_is_not :windows do
-    it "return true if the file exist" do
-      @object.send(@method, @file).should == true
+    it "returns true if the file exist" do
+      @object.send(@method, @file).should be_true
     end
 
     ruby_version_is "1.9" do
       it "accepts an object that has a #to_path method" do
-        @object.send(@method, mock_to_path(@file)).should == true
+        @object.send(@method, mock_to_path(@file)).should be_true
       end
     end
   end
 
   platform_is :windows do
-    it "return false if the file exist" do
-      @object.send(@method, @file).should == false
+    it "returns false if the file exist" do
+      @object.send(@method, @file).should be_false
     end
   end
 end

Modified: MacRuby/trunk/spec/frozen/shared/file/identical.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/file/identical.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/file/identical.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -4,7 +4,6 @@
     @file2 = tmp('file_identical2.txt')
     @link  = tmp('file_identical.lnk')
 
-
     touch(@file1) { |f| f.puts "file1" }
     touch(@file2) { |f| f.puts "file2" }
 
@@ -16,9 +15,7 @@
     rm_r @link, @file1, @file2
   end
 
-  it "return true if they are identical" do
-    @object.send(@method, @file1, @file1).should == true
-    @object.send(@method, @file1, @file2).should == false
+  it "returns true for a file and its link" do
     @object.send(@method, @file1, @link).should == true
   end
 
@@ -40,6 +37,7 @@
 
   it "returns true if both named files are identical" do
     @object.send(@method, @file1, @file1).should be_true
+    @object.send(@method, @link, @link).should be_true
     @object.send(@method, @file1, @file2).should be_false
   end
 end

Modified: MacRuby/trunk/spec/frozen/shared/file/sticky.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/file/sticky.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/file/sticky.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -8,7 +8,7 @@
     Dir.rmdir(@dir) if File.exists?(@dir)
   end
   
-  platform_is_not :windows, :darwin do
+  platform_is_not :windows, :darwin, :freebsd do
     it "returns true if the named file has the sticky bit, otherwise false" do
       Dir.mkdir @dir, 1755
       

Modified: MacRuby/trunk/spec/frozen/shared/file/world_readable.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/file/world_readable.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/file/world_readable.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :file_world_readable, :shared => true do
 

Modified: MacRuby/trunk/spec/frozen/shared/file/world_writable.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/file/world_writable.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/file/world_writable.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :file_world_writable, :shared => true do
 

Added: MacRuby/trunk/spec/frozen/shared/kernel/callcc.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/kernel/callcc.rb	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/shared/kernel/callcc.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -0,0 +1,68 @@
+describe :kernel_instance_callcc, :shared => true do
+  it "is a private method" do
+    Kernel.should have_private_instance_method(:callcc)
+  end
+end
+
+describe :kernel_callcc, :shared => true do
+  it "is possible to exit a loop like a break" do
+    i = 0
+    @object.callcc do |x|
+      loop do
+        i += 1
+        x.call() if i == 5
+      end
+    end.should == nil
+    i.should == 5
+  end
+
+  it "is possible to call a continuation multiple times" do
+    i = 0
+    cont = nil
+    @cont = nil
+    @object.callcc {|cont| @cont = cont}
+    i += 1
+    @cont.call() if i < 5
+    i.should == 5
+  end
+
+  it "returns the results of a block if continuation is not called" do
+    cont = nil
+    a = @object.callcc {|cont| 0}
+    a.should == 0
+  end
+
+  it "returns the results of continuation once called" do
+    cont = nil
+    @cont = nil
+    a = @object.callcc {|cont| @cont = cont; 0}
+    @cont.call(1) if a == 0
+    a.should == 1
+  end
+
+  it "returns the arguments to call" do
+    @object.callcc {|cont| cont.call }.should == nil
+    @object.callcc {|cont| cont.call 1 }.should == 1
+    @object.callcc {|cont| cont.call 1,2,3 }.should == [1,2,3]
+  end
+
+  it "preserves changes to block-local scope" do
+    i = "before"
+    cont = @object.callcc { |c| c }
+    if cont # nil the second time
+      i = "after"
+      cont.call
+    end
+    i.should == "after"
+  end
+
+  it "preserves changes to method-local scope" do
+    # This spec tests that a continuation shares the same locals
+    # tuple as the scope that created it.
+    KernelSpecs.before_and_after.should == "after"
+  end
+
+  it "raises a LocalJumpError if callcc is not given a block" do
+    lambda { @object.callcc }.should raise_error(LocalJumpError)
+  end
+end

Modified: MacRuby/trunk/spec/frozen/shared/kernel/method_missing.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/kernel/method_missing.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/kernel/method_missing.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,5 +1,5 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/../../fixtures/kernel/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../../../fixtures/kernel/classes', __FILE__)
 
 describe :method_missing, :shared => true do
   it "is a private method" do

Modified: MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_added.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_added.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_added.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :singleton_method_added, :shared => true do
   it "is a private method" do

Modified: MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_removed.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_removed.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_removed.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :singleton_method_removed, :shared => true do
   it "is a private method" do

Modified: MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_undefined.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_undefined.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/kernel/singleton_method_undefined.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :singleton_method_undefined, :shared => true do
   it "is a private method" do

Added: MacRuby/trunk/spec/frozen/shared/math/atanh.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/math/atanh.rb	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/shared/math/atanh.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -0,0 +1,142 @@
+describe :math_atanh_base, :shared => true do
+  it "returns a float" do
+    @object.send(@method, 0.5).should be_an_instance_of(Float)
+  end
+
+  it "returns the inverse hyperbolic tangent of the argument" do
+    @object.send(@method, 0.0).should == 0.0
+    @object.send(@method, -0.0).should == -0.0
+    @object.send(@method, 0.5).should be_close(0.549306144334055, TOLERANCE)
+    @object.send(@method, -0.2).should be_close(-0.202732554054082, TOLERANCE)
+  end
+
+  # These are quarantined because MRI's behavior here is completely confusing
+  # between 1.8 and 1.9 and whether lib/complex.rb is loaded on 1.8.
+  #
+  # TODO: file a ticket
+  quarantine! do
+    it "raises a TypeError if the argument is nil" do
+      lambda { @object.send(@method, nil) }.should raise_error(TypeError)
+    end
+
+    it "accepts any argument that can be coerced with Float()" do
+      obj = mock("Float 0.5")
+      obj.should_receive(:to_f).and_return(0.5)
+      @object.send(@method, obj).should be_close(0.549306144334055, TOLERANCE)
+    end
+
+    ruby_version_is ""..."1.9" do
+      it "raises an ArgumentError if the argument cannot be coerced with Float()" do
+        lambda { @object.send(@method, "test") }.should raise_error(ArgumentError)
+      end
+    end
+
+    ruby_version_is "1.9" do
+      it "raises a TypeError if the argument cannot be coerced with Float()" do
+        lambda { @object.send(@method, "test") }.should raise_error(TypeError)
+      end
+    end
+  end
+
+  # These are quarantined because MRI depends mostly on libc behavior, but
+  # not entirely. For example, on OS X 10.5.8:
+  #
+  #   $ ruby1.8.7 -v -e 'p Math.atanh(1.0)'
+  #   ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin9.8.0]
+  #   Infinity
+  #
+  #   $ ruby1.9 -v -e 'p Math.atanh(1.0)'
+  #   ruby 1.9.2dev (2010-02-17 trunk 26689) [i386-darwin9.8.0]
+  #   -e:1:in `atanh': Numerical argument out of domain - atanh (Errno::EDOM)
+  #           from -e:1:in `<main>'
+  #
+  # Since MRI is linking with the same libc on OS X (afaik), MRI's behavior
+  # is not solely determined by what libc is doing. So, MRI needs to decide
+  # what behavior is expected or state that the behavior is undefined.
+  quarantine! do
+    ruby_version_is ""..."1.9" do
+      platform_is :darwin, :freebsd, :java do
+        it "returns Infinity for 1.0" do
+          @object.send(@method, 1.0).infinite?.should == 1
+        end
+
+        it "returns -Infinity for -1.0" do
+          @object.send(@method, -1.0).infinite?.should == -1
+        end
+      end
+
+      platform_is :windows, :openbsd do
+        # jruby is cross-platform and behaves as :darwin above
+        not_compliant_on :jruby do
+          it "raises an Errno::EDOM if x == 1.0" do
+            lambda { @object.send(@method, 1.0) }.should raise_error(Errno::EDOM)
+          end
+
+          it "raises an Errno::EDOM if x == -1.0" do
+            lambda { @object.send(@method, -1.0) }.should raise_error(Errno::EDOM)
+          end
+        end
+      end
+
+      platform_is :linux do
+        it "raises an Errno::ERANGE if x == 1.0" do
+          lambda { @object.send(@method, 1.0) }.should raise_error(Errno::ERANGE)
+        end
+
+        it "raises an Errno::ERANGE if x == -1.0" do
+          lambda { @object.send(@method, -1.0) }.should raise_error(Errno::ERANGE)
+        end
+      end
+    end
+
+    ruby_version_is "1.9" do
+      platform_is_not :linux do
+        it "raises an Errno::EDOM if x == 1.0" do
+          lambda { @object.send(@method, 1.0) }.should raise_error(Errno::EDOM)
+        end
+
+        it "raises an Errno::EDOM if x == -1.0" do
+          lambda { @object.send(@method, -1.0) }.should raise_error(Errno::EDOM)
+        end
+      end
+
+      platform_is :linux do
+        it "raises an Errno::ERANGE if x == 1.0" do
+          lambda { @object.send(@method, 1.0) }.should raise_error(Errno::ERANGE)
+        end
+
+        it "raises an Errno::ERANGE if x == -1.0" do
+          lambda { @object.send(@method, -1.0) }.should raise_error(Errno::ERANGE)
+        end
+      end
+    end
+  end
+end
+
+describe :math_atanh_private, :shared => true do
+  it "is a private instance method" do
+    Math.should have_private_instance_method(@method)
+  end
+end
+
+describe :math_atanh_no_complex, :shared => true do
+  ruby_version_is ""..."1.9" do
+    it "raises an Errno::EDOM for arguments greater than 1.0" do
+      lambda { @object.send(@method, 1.0 + Float::EPSILON)  }.should raise_error(Errno::EDOM)
+    end
+
+    it "raises an Errno::EDOM for arguments less than -1.0" do
+      lambda { @object.send(@method, -1.0 - Float::EPSILON) }.should raise_error(Errno::EDOM)
+    end
+  end
+
+  ruby_version_is "1.9" do
+    it "raises an Math::DomainError for arguments greater than 1.0" do
+      lambda { @object.send(@method, 1.0 + Float::EPSILON)  }.should raise_error(Math::DomainError)
+    end
+
+    it "raises an Math::DomainError for arguments less than -1.0" do
+      lambda { @object.send(@method, -1.0 - Float::EPSILON) }.should raise_error(Math::DomainError)
+    end
+  end
+end

Modified: MacRuby/trunk/spec/frozen/shared/rational/Rational.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/Rational.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/Rational.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,5 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require 'rational'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_rational_two, :shared => true do
   before(:each) do

Modified: MacRuby/trunk/spec/frozen/shared/rational/abs.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/abs.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/abs.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_abs, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/ceil.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/ceil.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/ceil.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 ruby_version_is "1.9" do
   describe :rational_ceil, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/coerce.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/coerce.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/coerce.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_coerce, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/comparison.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/comparison.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/comparison.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_cmp_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/denominator.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/denominator.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/denominator.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_denominator, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/div.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/div.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/div.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_div_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/divide.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/divide.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/divide.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_divide_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/divmod.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/divmod.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/divmod.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_divmod_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/equal_value.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/equal_value.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/equal_value.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_equal_value_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/exponent.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/exponent.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/exponent.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_exponent_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/fdiv.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/fdiv.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/fdiv.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_fdiv, :shared => true do
   it "needs to be reviewed for spec completeness"

Modified: MacRuby/trunk/spec/frozen/shared/rational/floor.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/floor.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/floor.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_floor, :shared => true do
   it "needs to be reviewed for spec completeness"

Modified: MacRuby/trunk/spec/frozen/shared/rational/hash.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/hash.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/hash.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_hash, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/initialize.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/initialize.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/initialize.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_initialize, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/inspect.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/inspect.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/inspect.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_inspect, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/marshal_dump.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/marshal_dump.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/marshal_dump.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_marshal_dump, :shared => true do
   it "needs to be reviewed for spec completeness"

Modified: MacRuby/trunk/spec/frozen/shared/rational/marshal_load.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/marshal_load.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/marshal_load.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_marshal_load, :shared => true do
   it "needs to be reviewed for spec completeness"

Modified: MacRuby/trunk/spec/frozen/shared/rational/minus.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/minus.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/minus.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_minus_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/modulo.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/modulo.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/modulo.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_modulo, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/multiply.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/multiply.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/multiply.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_multiply_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/new.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/new.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/new.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_new, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/numerator.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/numerator.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/numerator.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_numerator, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/plus.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/plus.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/plus.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_plus_rat, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/quo.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/quo.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/quo.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_quo, :shared => true do
   it "needs to be reviewed for spec completeness"

Modified: MacRuby/trunk/spec/frozen/shared/rational/reduce.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/reduce.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/reduce.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_reduce_unfiy, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/remainder.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/remainder.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/remainder.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_remainder, :shared => true do
   it "needs to be reviewed for spec completeness"

Modified: MacRuby/trunk/spec/frozen/shared/rational/round.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/round.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/round.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_round, :shared => true do
   it "needs to be reviewed for spec completeness"

Modified: MacRuby/trunk/spec/frozen/shared/rational/to_f.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/to_f.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/to_f.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_to_f, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/to_i.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/to_i.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/to_i.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_to_i, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/to_r.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/to_r.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/to_r.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_to_r, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/to_s.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/to_s.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/to_s.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 require 'rational'
 
 describe :rational_to_s, :shared => true do

Modified: MacRuby/trunk/spec/frozen/shared/rational/truncate.rb
===================================================================
--- MacRuby/trunk/spec/frozen/shared/rational/truncate.rb	2010-03-28 19:53:23 UTC (rev 3872)
+++ MacRuby/trunk/spec/frozen/shared/rational/truncate.rb	2010-03-28 19:54:40 UTC (rev 3873)
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
 
 describe :rational_truncate, :shared => true do
   it "needs to be reviewed for spec completeness"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100328/62eae7ae/attachment-0001.html>


More information about the macruby-changes mailing list