[macruby-changes] [1691] MacRuby/branches/experimental
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 1 15:54:02 PDT 2009
Revision: 1691
http://trac.macosforge.org/projects/ruby/changeset/1691
Author: eloy.de.enige at gmail.com
Date: 2009-06-01 15:54:02 -0700 (Mon, 01 Jun 2009)
Log Message:
-----------
Tagged critical and failing examples of Dir spec and added Dir to spec:ci.
Modified Paths:
--------------
MacRuby/branches/experimental/rakelib/spec.rake
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/fail_tags.txt
Added Paths:
-----------
MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec_disabled.rb
MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/chdir_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/close_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/each_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/foreach_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/getwd_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/mkdir_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/open_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/pos_tags.txt
Removed Paths:
-------------
MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec.rb
MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb
Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake 2009-06-01 22:51:57 UTC (rev 1690)
+++ MacRuby/branches/experimental/rakelib/spec.rake 2009-06-01 22:54:02 UTC (rev 1691)
@@ -59,6 +59,7 @@
spec/frozen/core/basicobject
spec/frozen/core/class
spec/frozen/core/comparable
+ spec/frozen/core/dir
spec/frozen/core/enumerable
spec/frozen/core/exception
spec/frozen/core/false
Deleted: MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec.rb 2009-06-01 22:51:57 UTC (rev 1690)
+++ MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec.rb 2009-06-01 22:54:02 UTC (rev 1691)
@@ -1,16 +0,0 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/common'
-require File.dirname(__FILE__) + '/shared/closed'
-require File.dirname(__FILE__) + '/shared/pos'
-
-describe "Dir#pos" do
- it_behaves_like :dir_pos, :pos
-end
-
-describe "Dir#pos" do
- it_behaves_like :dir_closed, :pos
-end
-
-describe "Dir#pos=" do
- it_behaves_like :dir_pos_set, :pos=
-end
Copied: MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec_disabled.rb (from rev 1690, MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec.rb)
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec_disabled.rb (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/dir/pos_spec_disabled.rb 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1,16 @@
+require File.dirname(__FILE__) + '/../../spec_helper'
+require File.dirname(__FILE__) + '/fixtures/common'
+require File.dirname(__FILE__) + '/shared/closed'
+require File.dirname(__FILE__) + '/shared/pos'
+
+describe "Dir#pos" do
+ it_behaves_like :dir_pos, :pos
+end
+
+describe "Dir#pos" do
+ it_behaves_like :dir_closed, :pos
+end
+
+describe "Dir#pos=" do
+ it_behaves_like :dir_pos_set, :pos=
+end
Deleted: MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb 2009-06-01 22:51:57 UTC (rev 1690)
+++ MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb 2009-06-01 22:54:02 UTC (rev 1691)
@@ -1,24 +0,0 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-require File.dirname(__FILE__) + '/fixtures/common'
-require File.dirname(__FILE__) + '/shared/pwd'
-
-describe "Dir.pwd" do
- it_behaves_like :dir_pwd, :pwd
-
- it "correctly displays dirs with unicode characters in them" do
- DirSpecs.clear_dirs
-
- begin
- old_kcode, $KCODE=$KCODE,'u'
- str = [0xe9].pack 'U' #Unicode \xE9
- Dir.mkdir str
- File.exist?(str).should == true
-
- old_pwd = Dir.pwd
- Dir.chdir(str) { Dir.pwd.should == File.join(old_pwd, str) }
- ensure
- DirSpecs.clear_dirs
- $KCODE=old_kcode
- end
- end
-end
Copied: MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb (from rev 1690, MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb)
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1,24 @@
+require File.dirname(__FILE__) + '/../../spec_helper'
+require File.dirname(__FILE__) + '/fixtures/common'
+require File.dirname(__FILE__) + '/shared/pwd'
+
+describe "Dir.pwd" do
+ it_behaves_like :dir_pwd, :pwd
+
+ it "correctly displays dirs with unicode characters in them" do
+ DirSpecs.clear_dirs
+
+ begin
+ old_kcode, $KCODE=$KCODE,'u'
+ str = [0xe9].pack 'U' #Unicode \xE9
+ Dir.mkdir str
+ File.exist?(str).should == true
+
+ old_pwd = Dir.pwd
+ Dir.chdir(str) { Dir.pwd.should == File.join(old_pwd, str) }
+ ensure
+ DirSpecs.clear_dirs
+ $KCODE=old_kcode
+ end
+ end
+end
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/chdir_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/chdir_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/chdir_tags.txt 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1 @@
+fails:Dir.chdir always returns to the original directory when given a block
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/close_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/close_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/close_tags.txt 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1 @@
+fails:Dir#close closes the stream and fd and returns nil
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/each_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/each_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/each_tags.txt 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1 @@
+fails:Dir#each returns an Enumerator if no block given
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/foreach_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/foreach_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/foreach_tags.txt 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1 @@
+fails:Dir.foreach returns an Enumerator if no block given
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-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1 @@
+fails:Dir.pwd returns the current working directory
\ No newline at end of file
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/mkdir_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/mkdir_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/mkdir_tags.txt 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1 @@
+fails:Dir.mkdir raises a SystemCallError when lacking adequate permissions in the parent dir
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/open_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/open_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/open_tags.txt 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1 @@
+fails:Dir.open closes the Dir instance when the block exits the block even due to an exception
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/pos_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/pos_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/dir/pos_tags.txt 2009-06-01 22:54:02 UTC (rev 1691)
@@ -0,0 +1,4 @@
+critical:Dir#pos= moves the read position to a previously obtained position
+critical:Dir#pos raises an IOError when called on a closed Dir instance
+critical:Dir#pos returns a different Integer if moved from previous position
+critical:Dir#pos returns an Integer representing the current position in the directory
\ No newline at end of file
Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/fail_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/fail_tags.txt 2009-06-01 22:51:57 UTC (rev 1690)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/fail_tags.txt 2009-06-01 22:54:02 UTC (rev 1691)
@@ -1 +1,2 @@
fails:Kernel.fail is a private method
+fails:Kernel.fail raises a RuntimeError
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090601/70f781ea/attachment-0001.html>
More information about the macruby-changes
mailing list