aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_pathname_install.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-02 15:47:25 -0500
committerJack Nagel2013-04-02 15:47:25 -0500
commit4ebafbf62fea68a78e0c0468b0153811e40b01b6 (patch)
treefa006fa0b73e1f878dd3582d65ab41e31411e3cd /Library/Homebrew/test/test_pathname_install.rb
parent3bceaf8f5e4b771eb1557c5a91a8fb84e62168ad (diff)
downloadbrew-4ebafbf62fea68a78e0c0468b0153811e40b01b6.tar.bz2
Suppress warnings in test_pathname_install
Diffstat (limited to 'Library/Homebrew/test/test_pathname_install.rb')
-rw-r--r--Library/Homebrew/test/test_pathname_install.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/Library/Homebrew/test/test_pathname_install.rb b/Library/Homebrew/test/test_pathname_install.rb
index 68dbccd16..c036a9b6e 100644
--- a/Library/Homebrew/test/test_pathname_install.rb
+++ b/Library/Homebrew/test/test_pathname_install.rb
@@ -30,8 +30,8 @@ class PathnameInstallTests < Test::Unit::TestCase
with_temp_folder do
TARGET_FOLDER.install 'a.txt'
- assert (TARGET_FOLDER+'a.txt').exist?, "a.txt not installed."
- assert !(TARGET_FOLDER+'b.txt').exist?, "b.txt was installed."
+ assert((TARGET_FOLDER+'a.txt').exist?, "a.txt not installed.")
+ assert(!(TARGET_FOLDER+'b.txt').exist?, "b.txt was installed.")
end
end
@@ -39,8 +39,8 @@ class PathnameInstallTests < Test::Unit::TestCase
with_temp_folder do
TARGET_FOLDER.install %w[a.txt b.txt]
- assert (TARGET_FOLDER+'a.txt').exist?, "a.txt not installed."
- assert (TARGET_FOLDER+'b.txt').exist?, "b.txt not installed."
+ assert((TARGET_FOLDER+'a.txt').exist?, "a.txt not installed.")
+ assert((TARGET_FOLDER+'b.txt').exist?, "b.txt not installed.")
end
end
@@ -48,8 +48,8 @@ class PathnameInstallTests < Test::Unit::TestCase
with_temp_folder do
TARGET_FOLDER.install Dir['*.txt']
- assert (TARGET_FOLDER+'a.txt').exist?, "a.txt not installed."
- assert (TARGET_FOLDER+'b.txt').exist?, "b.txt not installed."
+ assert((TARGET_FOLDER+'a.txt').exist?, "a.txt not installed.")
+ assert((TARGET_FOLDER+'b.txt').exist?, "b.txt not installed.")
end
end
@@ -60,8 +60,8 @@ class PathnameInstallTests < Test::Unit::TestCase
TARGET_FOLDER.install "bin"
- assert (TARGET_FOLDER+'bin/a.txt').exist?, "a.txt not installed."
- assert (TARGET_FOLDER+'bin/b.txt').exist?, "b.txt not installed."
+ assert((TARGET_FOLDER+'bin/a.txt').exist?, "a.txt not installed.")
+ assert((TARGET_FOLDER+'bin/b.txt').exist?, "b.txt not installed.")
end
end
@@ -69,9 +69,9 @@ class PathnameInstallTests < Test::Unit::TestCase
with_temp_folder do
TARGET_FOLDER.install 'a.txt' => 'c.txt'
- assert (TARGET_FOLDER+'c.txt').exist?, "c.txt not installed."
- assert !(TARGET_FOLDER+'a.txt').exist?, "a.txt was installed but not renamed."
- assert !(TARGET_FOLDER+'b.txt').exist?, "b.txt was installed."
+ assert((TARGET_FOLDER+'c.txt').exist?, "c.txt not installed.")
+ assert(!(TARGET_FOLDER+'a.txt').exist?, "a.txt was installed but not renamed.")
+ assert(!(TARGET_FOLDER+'b.txt').exist?, "b.txt was installed.")
end
end
@@ -79,10 +79,10 @@ class PathnameInstallTests < Test::Unit::TestCase
with_temp_folder do
TARGET_FOLDER.install({'a.txt' => 'c.txt', 'b.txt' => 'd.txt'})
- assert (TARGET_FOLDER+'c.txt').exist?, "c.txt not installed."
- assert (TARGET_FOLDER+'d.txt').exist?, "d.txt not installed."
- assert !(TARGET_FOLDER+'a.txt').exist?, "a.txt was installed but not renamed."
- assert !(TARGET_FOLDER+'b.txt').exist?, "b.txt was installed but not renamed."
+ assert((TARGET_FOLDER+'c.txt').exist?, "c.txt not installed.")
+ assert((TARGET_FOLDER+'d.txt').exist?, "d.txt not installed.")
+ assert(!(TARGET_FOLDER+'a.txt').exist?, "a.txt was installed but not renamed.")
+ assert(!(TARGET_FOLDER+'b.txt').exist?, "b.txt was installed but not renamed.")
end
end
@@ -93,9 +93,9 @@ class PathnameInstallTests < Test::Unit::TestCase
TARGET_FOLDER.install "bin" => "libexec"
- assert !(TARGET_FOLDER+'bin').exist?, "bin was installed but not renamed."
- assert (TARGET_FOLDER+'libexec/a.txt').exist?, "a.txt not installed."
- assert (TARGET_FOLDER+'libexec/b.txt').exist?, "b.txt not installed."
+ assert(!(TARGET_FOLDER+'bin').exist?, "bin was installed but not renamed.")
+ assert((TARGET_FOLDER+'libexec/a.txt').exist?, "a.txt not installed.")
+ assert((TARGET_FOLDER+'libexec/b.txt').exist?, "b.txt not installed.")
end
end