aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2015-03-25 21:37:26 -0400
committerJack Nagel2015-03-25 21:37:26 -0400
commit7a11024123259346b2f63efbff35884ec26dea9f (patch)
tree139bafb5a997adc40bd0eec952cf36c2cad3a40d
parent689e921c0034ee24a7daae1bec9df3394e31ec0f (diff)
downloadhomebrew-7a11024123259346b2f63efbff35884ec26dea9f.tar.bz2
Get rid of setup_install_test method
-rw-r--r--Library/Homebrew/test/test_pathname.rb15
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