[macruby-changes] [1829] MacRuby/branches/experimental/spec/frozen
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jun 9 02:17:07 PDT 2009
Revision: 1829
http://trac.macosforge.org/projects/ruby/changeset/1829
Author: eloy.de.enige at gmail.com
Date: 2009-06-09 02:17:04 -0700 (Tue, 09 Jun 2009)
Log Message:
-----------
Tagged a few failing examples and added note about recent ObjectSpace#each_object example, it generates around ~5000 expectations, can we make it simpler?
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/core/objectspace/each_object_spec.rb
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/no_method_error_tags.txt
Added Paths:
-----------
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/getwd_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/language/super_tags.txt
Modified: MacRuby/branches/experimental/spec/frozen/core/objectspace/each_object_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/objectspace/each_object_spec.rb 2009-06-09 06:51:06 UTC (rev 1828)
+++ MacRuby/branches/experimental/spec/frozen/core/objectspace/each_object_spec.rb 2009-06-09 09:17:04 UTC (rev 1829)
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/../../spec_helper'
describe "ObjectSpace.each_object" do
- it "calls the block once for each living, nonimmediate object in the Ruby process" do
+ it "calls the block once for each living, non-immediate object in the Ruby process" do
class ObjectSpaceSpecEachObject; end
new_obj = ObjectSpaceSpecEachObject.new
@@ -12,10 +12,13 @@
end
count.should == 1
yields.should == 1
+
# this is needed to prevent the new_obj from being GC'd too early
new_obj.should_not == nil
end
+ # TODO: This really generates a whole lot of expectations (~5000 thousand).
+ # Can't we define our own class like above?
it "calls the block once for each class, module in the Ruby process" do
[Class, Module].each do |k|
yields = 0
@@ -26,7 +29,7 @@
count.should == yields
end
end
-
+
ruby_version_is '1.8.7' do
it "returns an enumerator if not given a block" do
class ObjectSpaceSpecEachOtherObject; end
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/getwd_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/getwd_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/getwd_tags.txt 2009-06-09 09:17:04 UTC (rev 1829)
@@ -0,0 +1 @@
+fails:Dir.pwd returns the current working directory
\ No newline at end of file
Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/no_method_error_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/no_method_error_tags.txt 2009-06-09 06:51:06 UTC (rev 1828)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/no_method_error_tags.txt 2009-06-09 09:17:04 UTC (rev 1829)
@@ -1,3 +1,5 @@
fails:NoMethodError#message for an protected method match /protected method/
fails:NoMethodError#message for private method match /private method/
-fails:NoMethodError#args returns an array with the same elements as passed to the method
\ No newline at end of file
+fails:NoMethodError#args returns an array with the same elements as passed to the method
+fails:NoMethodError#args returns an empty array if the caller method had no arguments
+fails:NoMethodError#message for an undefined method match /undefined method/
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/language/super_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/language/super_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/language/super_tags.txt 2009-06-09 09:17:04 UTC (rev 1829)
@@ -0,0 +1 @@
+fails:The super keyword raises an error error when super method does not exist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090609/904912af/attachment-0001.html>
More information about the macruby-changes
mailing list