Created
March 11, 2011 16:09
-
-
Save craigmcnamara/866093 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should work for home dirs" do | |
pwd = Dir.pwd | |
dir = Dir.chdir { Dir.pwd } | |
dir.downcase.should == ENV['HOME'].downcase # Fails with expected "c:\\users\\craig" got "c:/users/craig" (using ==) | |
pwd.should == Dir.pwd | |
end | |
# Are both of these formats valid? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment