Permalink
Browse files

expand the tmpdir to the realpath so tests on OS X pass

  • Loading branch information...
1 parent 056dbf4 commit c445f0d61fb727abc173d6985075bdf87a3b4ea6 @tenderlove tenderlove committed Jun 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 railties/test/isolation/abstract_unit.rb
  2. +1 −1 railties/test/railties/generators_test.rb
@@ -30,7 +30,7 @@ def app_template_path
end
def tmp_path(*args)
- @tmp_path ||= Dir.mktmpdir
+ @tmp_path ||= File.realpath(Dir.mktmpdir)
end
def app_path(*args)
@@ -13,7 +13,7 @@ def destination_root
end
def tmp_path(*args)
- @tmp_path ||= Dir.mktmpdir
+ @tmp_path ||= File.realpath(Dir.mktmpdir)
File.join(@tmp_path, *args)
end

0 comments on commit c445f0d

Please sign in to comment.