diff options
| author | Jack Nagel | 2015-03-25 21:37:26 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-03-25 21:37:26 -0400 |
| commit | 038332d8d76890d3652ba37607c9e1eaa06d23e4 (patch) | |
| tree | cabaa9726be354f6a135ec70c24f1478134eaa7f /Library/Homebrew | |
| parent | 148ebcb72e609b3b49002cdf40a5620f4ec67344 (diff) | |
| download | brew-038332d8d76890d3652ba37607c9e1eaa06d23e4.tar.bz2 | |
Get rid of setup_install_test method
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/test_pathname.rb | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Library/Homebrew/test/test_pathname.rb b/Library/Homebrew/test/test_pathname.rb index 0339d77bc..77a40fa74 100644 --- a/Library/Homebrew/test/test_pathname.rb +++ b/Library/Homebrew/test/test_pathname.rb @@ -116,13 +116,13 @@ class PathnameExtensionTests < Homebrew::TestCase end class PathnameInstallTests < PathnameExtensionTests - def setup_install_test - (@src+'a.txt').write 'This is sample file a.' - (@src+'b.txt').write 'This is sample file b.' + def setup + super + (@src+"a.txt").write "This is sample file a." + (@src+"b.txt").write "This is sample file b." end def test_install - setup_install_test @dst.install @src+"a.txt" assert_predicate @dst+"a.txt", :exist?, "a.txt was not installed" @@ -130,7 +130,6 @@ class PathnameInstallTests < PathnameExtensionTests end def test_install_list - setup_install_test @dst.install [@src+"a.txt", @src+"b.txt"] assert_predicate @dst+"a.txt", :exist?, "a.txt was not installed" @@ -138,7 +137,6 @@ class PathnameInstallTests < PathnameExtensionTests end def test_install_glob - setup_install_test @dst.install Dir[@src+"*.txt"] assert_predicate @dst+"a.txt", :exist?, "a.txt was not installed" @@ -146,7 +144,6 @@ class PathnameInstallTests < PathnameExtensionTests end def test_install_directory - setup_install_test bin = @src+"bin" bin.mkpath mv Dir[@src+"*.txt"], bin @@ -157,7 +154,6 @@ class PathnameInstallTests < PathnameExtensionTests end def test_install_rename - setup_install_test @dst.install @src+"a.txt" => "c.txt" assert_predicate @dst+"c.txt", :exist?, "c.txt was not installed" @@ -166,7 +162,6 @@ class PathnameInstallTests < PathnameExtensionTests end def test_install_rename_more - setup_install_test @dst.install(@src+"a.txt" => "c.txt", @src+"b.txt" => "d.txt") assert_predicate @dst+"c.txt", :exist?, "c.txt was not installed" @@ -176,7 +171,6 @@ class PathnameInstallTests < PathnameExtensionTests end def test_install_rename_directory - setup_install_test bin = @src+"bin" bin.mkpath mv Dir[@src+"*.txt"], bin @@ -188,7 +182,6 @@ class PathnameInstallTests < PathnameExtensionTests end def test_install_symlink - setup_install_test bin = @src+"bin" bin.mkpath mv Dir[@src+"*.txt"], bin |
