diff options
Diffstat (limited to 'Library/Homebrew/test/test_pathname.rb')
| -rw-r--r-- | Library/Homebrew/test/test_pathname.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Library/Homebrew/test/test_pathname.rb b/Library/Homebrew/test/test_pathname.rb index 4a9a0b0e3..37b85a07d 100644 --- a/Library/Homebrew/test/test_pathname.rb +++ b/Library/Homebrew/test/test_pathname.rb @@ -95,14 +95,11 @@ class PathnameExtensionTests < Test::Unit::TestCase end def test_install_removes_original - orig_file = @file touch @file + @dst.install(@file) - @file, _ = @dst.install(@file) - - assert_equal orig_file.basename, @file.basename - assert @file.exist? - assert !orig_file.exist? + assert (@dst/@file.basename).exist? + assert !@file.exist? end def setup_install_test @@ -200,13 +197,6 @@ class PathnameExtensionTests < Test::Unit::TestCase end end - def test_install_returns_installed_paths - foo, bar = @src+'foo', @src+'bar' - touch [foo, bar] - dirs = @dst.install(foo, bar) - assert_equal [@dst+'foo', @dst+'bar'], dirs - end - def test_install_creates_intermediate_directories touch @file assert !@dir.directory? |
