public
Description: RSpec-style specification for the Ruby programming language
Homepage: http://rubyspec.org
Clone URL: git://github.com/rubyspec/rubyspec.git
Search Repo:
Patch dir/shared/pwd test to work in OS/X case insensitive

The test was comparing file names rather than files and so case
differences between the file system and the command line were
making the test fail.
technomage (author)
Thu Jun 05 14:11:42 -0700 2008
commit  92b5bfb26d718374b056f985effa3efea3cd3ebb
tree    8526f25c520e673c31860e69bedc76c555c2dc90
parent  fa353ffcd70c0441726097908b0fe4a14b4f56b9
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ shared :dir_pwd do |cmd|
0
     it "returns the current working directory" do
0
       # On ubuntu gutsy, for example, /bin/pwd does not
0
       # understand -P. With just `pwd -P`, /bin/pwd is run.
0
- Dir.send(cmd).should == `/bin/sh -c "pwd -P"`.chomp
0
+ File.stat(Dir.send(cmd)).ino.should == File.stat(`/bin/sh -c "pwd -P"`.chomp).ino
0
     end
0
   end
0
 end

Comments

    No one has commented yet.