[macruby-changes] [3878] MacRuby/trunk/spec/frozen

source_changes at macosforge.org source_changes at macosforge.org
Sun Mar 28 13:02:17 PDT 2010


Revision: 3878
          http://trac.macosforge.org/projects/ruby/changeset/3878
Author:   eloy.de.enige at gmail.com
Date:     2010-03-28 13:02:17 -0700 (Sun, 28 Mar 2010)
Log Message:
-----------
Tag critical specs and disable BEGIN { ?\226?\128?\166 } specs.

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/tags/macruby/core/io/each_line_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/io/each_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/io/readlines_tags.txt

Added Paths:
-----------
    MacRuby/trunk/spec/frozen/language/BEGIN_spec_disabled.rb
    MacRuby/trunk/spec/frozen/tags/macruby/core/class/initialize_copy_tags.txt

Removed Paths:
-------------
    MacRuby/trunk/spec/frozen/language/BEGIN_spec.rb

Deleted: MacRuby/trunk/spec/frozen/language/BEGIN_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/language/BEGIN_spec.rb	2010-03-28 20:02:02 UTC (rev 3877)
+++ MacRuby/trunk/spec/frozen/language/BEGIN_spec.rb	2010-03-28 20:02:17 UTC (rev 3878)
@@ -1,51 +0,0 @@
-require File.expand_path('../../spec_helper', __FILE__)
-
-describe "The BEGIN keyword" do
-  ruby_version_is "" .. "1.9" do
-    it "runs in a new isolated scope" do
-      lambda {
-        eval "BEGIN { var_in_begin = 'foo' }; var_in_begin"
-      }.should raise_error NameError
-
-      lambda {
-        outside_var = 'foo'
-        eval "BEGIN { outside_var }"
-      }.should raise_error NameError
-    end
-  end
-
-  ruby_version_is "1.9" do
-    it "runs in a shared scope" do
-      lambda {
-        eval "BEGIN { var_in_begin = 'foo' }; var_in_begin"
-      }.should_not raise_error NameError
-
-      lambda {
-        outside_var = 'foo'
-        eval "BEGIN { outside_var }"
-      }.should_not raise_error NameError
-    end
-  end
-
-  it "runs first in a given code unit" do
-    o = Object.new
-    class << o
-      ARY = []
-      eval "ARY << 'foo'; BEGIN { ARY << 'bar' }"
-      def ary; ARY; end
-    end
-
-    o.ary.should == ['bar', 'foo']
-  end
-
-  it "runs multiple begins in FIFO order" do
-    o = Object.new
-    class << o
-      ARY = []
-      eval "BEGIN { ARY << 'foo' }; BEGIN { ARY << 'bar' }"
-      def ary; ARY; end
-    end
-
-    o.ary.should == ['foo', 'bar']
-  end
-end

Copied: MacRuby/trunk/spec/frozen/language/BEGIN_spec_disabled.rb (from rev 3877, MacRuby/trunk/spec/frozen/language/BEGIN_spec.rb)
===================================================================
--- MacRuby/trunk/spec/frozen/language/BEGIN_spec_disabled.rb	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/language/BEGIN_spec_disabled.rb	2010-03-28 20:02:17 UTC (rev 3878)
@@ -0,0 +1,51 @@
+require File.expand_path('../../spec_helper', __FILE__)
+
+describe "The BEGIN keyword" do
+  ruby_version_is "" .. "1.9" do
+    it "runs in a new isolated scope" do
+      lambda {
+        eval "BEGIN { var_in_begin = 'foo' }; var_in_begin"
+      }.should raise_error NameError
+
+      lambda {
+        outside_var = 'foo'
+        eval "BEGIN { outside_var }"
+      }.should raise_error NameError
+    end
+  end
+
+  ruby_version_is "1.9" do
+    it "runs in a shared scope" do
+      lambda {
+        eval "BEGIN { var_in_begin = 'foo' }; var_in_begin"
+      }.should_not raise_error NameError
+
+      lambda {
+        outside_var = 'foo'
+        eval "BEGIN { outside_var }"
+      }.should_not raise_error NameError
+    end
+  end
+
+  it "runs first in a given code unit" do
+    o = Object.new
+    class << o
+      ARY = []
+      eval "ARY << 'foo'; BEGIN { ARY << 'bar' }"
+      def ary; ARY; end
+    end
+
+    o.ary.should == ['bar', 'foo']
+  end
+
+  it "runs multiple begins in FIFO order" do
+    o = Object.new
+    class << o
+      ARY = []
+      eval "BEGIN { ARY << 'foo' }; BEGIN { ARY << 'bar' }"
+      def ary; ARY; end
+    end
+
+    o.ary.should == ['foo', 'bar']
+  end
+end

Added: MacRuby/trunk/spec/frozen/tags/macruby/core/class/initialize_copy_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/class/initialize_copy_tags.txt	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/class/initialize_copy_tags.txt	2010-03-28 20:02:17 UTC (rev 3878)
@@ -0,0 +1,2 @@
+critical:Class#initialize_copy raises a TypeError when called on already initialized classes
+critical:Class#initialize_copy raises a TypeError when called on BasicObject

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/io/each_line_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/io/each_line_tags.txt	2010-03-28 20:02:02 UTC (rev 3877)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/io/each_line_tags.txt	2010-03-28 20:02:17 UTC (rev 3878)
@@ -3,3 +3,4 @@
 fails:IO#each_line when passed a separator does not change $_
 fails:IO#each_line when passed a separator yields self's content starting from the current position when the passed separator is nil
 fails:IO#each_line when passed a separator yields each paragraph when passed an empty String as separator
+critical:IO#each_line when passed a String containing one space as a separator tries to convert the passed separator to a String using #to_str

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/io/each_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/io/each_tags.txt	2010-03-28 20:02:02 UTC (rev 3877)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/io/each_tags.txt	2010-03-28 20:02:17 UTC (rev 3878)
@@ -3,3 +3,4 @@
 fails:IO#each when passed a separator does not change $_
 fails:IO#each when passed a separator yields self's content starting from the current position when the passed separator is nil
 fails:IO#each when passed a separator yields each paragraph when passed an empty String as separator
+critical:IO#each when passed a String containing one space as a separator tries to convert the passed separator to a String using #to_str

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/io/readlines_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/io/readlines_tags.txt	2010-03-28 20:02:02 UTC (rev 3877)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/io/readlines_tags.txt	2010-03-28 20:02:17 UTC (rev 3878)
@@ -9,3 +9,4 @@
 fails:IO#readlines when passed [file_name, separator] does not change $_
 fails:IO#readlines when passed [file_name, separator] returns an Array containing all paragraphs when the passed separator is an empty String
 fails:IO#readlines when passed [file_name, separator] tries to convert the passed separator to a String using #to_str
+critical:IO#readlines when passed a separator tries to convert the passed separator to a String using #to_str
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100328/f42f5550/attachment-0001.html>


More information about the macruby-changes mailing list