[macruby-changes] [3800] MacRuby/trunk/spec/frozen/core/dir/pwd_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 17 22:26:09 PDT 2010


Revision: 3800
          http://trac.macosforge.org/projects/ruby/changeset/3800
Author:   lsansonetti at apple.com
Date:     2010-03-17 22:26:07 -0700 (Wed, 17 Mar 2010)
Log Message:
-----------
rewrite a spec to not use a side effect

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/core/dir/pwd_spec.rb

Modified: MacRuby/trunk/spec/frozen/core/dir/pwd_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/dir/pwd_spec.rb	2010-03-18 05:13:12 UTC (rev 3799)
+++ MacRuby/trunk/spec/frozen/core/dir/pwd_spec.rb	2010-03-18 05:26:07 UTC (rev 3800)
@@ -37,7 +37,7 @@
       DirSpecs.clear_dirs
 
       begin
-        str = [0xe9].pack 'U' #Unicode \xE9
+        str = "\u{e9}" #Unicode \xE9
         Dir.mkdir str
         File.exist?(str).should == true
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100317/ed1b36e6/attachment.html>


More information about the macruby-changes mailing list