Permalink
Browse files

Merge pull request #106 from nudded/dir-home

Add Dir.home method
  • Loading branch information...
2 parents 5c3f970 + f731619 commit e3e6397a27475ee06073bec89a25100d75a49445 @jfirebaugh jfirebaugh committed Apr 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/fakefs/dir.rb
View
4 lib/fakefs/dir.rb
@@ -101,6 +101,10 @@ def self.glob(pattern, &block)
return block_given? ? files.each { |file| block.call(file) } : files
end
+ def self.home(user = nil)
+ RealDir.home(user)
+ end
+
def self.mkdir(string, integer = 0)
FileUtils.mkdir(string)
end

0 comments on commit e3e6397

Please sign in to comment.