[macruby-changes] [1752] MacRuby/branches/experimental/spec/frozen/core/dir
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 5 14:32:33 PDT 2009
Revision: 1752
http://trac.macosforge.org/projects/ruby/changeset/1752
Author: lsansonetti at apple.com
Date: 2009-06-05 14:32:33 -0700 (Fri, 05 Jun 2009)
Log Message:
-----------
re-enabling the pwd spec (it's all green, yay)
Added Paths:
-----------
MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb
Removed Paths:
-------------
MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb
Copied: MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb (from rev 1748, MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb)
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec.rb 2009-06-05 21:32:33 UTC (rev 1752)
@@ -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
Deleted: MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb 2009-06-05 21:28:49 UTC (rev 1751)
+++ MacRuby/branches/experimental/spec/frozen/core/dir/pwd_spec_disabled.rb 2009-06-05 21:32:33 UTC (rev 1752)
@@ -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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090605/18537a79/attachment.html>
More information about the macruby-changes
mailing list