tests: fix Ruby 1.8 syntax warnings
In `Library/Homebrew/test/`: test_integration_cmds.rb:431: warning: (...) interpreted as grouped expression test_integration_cmds.rb:502: warning: (...) interpreted as grouped expression test_integration_cmds.rb:507: warning: (...) interpreted as grouped expression test_integration_cmds.rb:585: warning: (...) interpreted as grouped expression test_integration_cmds.rb:709: warning: (...) interpreted as grouped expression test_integration_cmds.rb:710: warning: (...) interpreted as grouped expression test_integration_cmds.rb:711: warning: (...) interpreted as grouped expression
This commit is contained in:
parent
980001341d
commit
d183ff8065
@ -412,8 +412,8 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
|
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
|
||||||
|
|
||||||
cmd("upgrade")
|
cmd("upgrade")
|
||||||
assert (HOMEBREW_CELLAR/"testball/0.1").directory?,
|
assert((HOMEBREW_CELLAR/"testball/0.1").directory?,
|
||||||
"The latest version directory should be created"
|
"The latest version directory should be created")
|
||||||
ensure
|
ensure
|
||||||
formula_file.unlink
|
formula_file.unlink
|
||||||
cmd("uninstall", "--force", testball)
|
cmd("uninstall", "--force", testball)
|
||||||
@ -483,13 +483,13 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
|
|
||||||
cmd("pin", "testball")
|
cmd("pin", "testball")
|
||||||
cmd("upgrade")
|
cmd("upgrade")
|
||||||
refute (HOMEBREW_CELLAR/"testball/0.1").directory?,
|
refute((HOMEBREW_CELLAR/"testball/0.1").directory?,
|
||||||
"The latest version directory should NOT be created"
|
"The latest version directory should NOT be created")
|
||||||
|
|
||||||
cmd("unpin", "testball")
|
cmd("unpin", "testball")
|
||||||
cmd("upgrade")
|
cmd("upgrade")
|
||||||
assert (HOMEBREW_CELLAR/"testball/0.1").directory?,
|
assert((HOMEBREW_CELLAR/"testball/0.1").directory?,
|
||||||
"The latest version directory should be created"
|
"The latest version directory should be created")
|
||||||
ensure
|
ensure
|
||||||
formula_file.unlink
|
formula_file.unlink
|
||||||
cmd("uninstall", "--force", testball)
|
cmd("uninstall", "--force", testball)
|
||||||
@ -566,8 +566,8 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
EOS
|
EOS
|
||||||
|
|
||||||
cmd("fetch", "testball")
|
cmd("fetch", "testball")
|
||||||
assert (HOMEBREW_CACHE/"testball-0.1.tbz").exist?,
|
assert((HOMEBREW_CACHE/"testball-0.1.tbz").exist?,
|
||||||
"The tarball should have been cached"
|
"The tarball should have been cached")
|
||||||
ensure
|
ensure
|
||||||
formula_file.unlink
|
formula_file.unlink
|
||||||
cmd("cleanup", "--force", "--prune=all")
|
cmd("cleanup", "--force", "--prune=all")
|
||||||
@ -690,9 +690,9 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
cmd("prune", "--dry-run")
|
cmd("prune", "--dry-run")
|
||||||
assert_match "Pruned 1 symbolic links and 3 directories",
|
assert_match "Pruned 1 symbolic links and 3 directories",
|
||||||
cmd("prune")
|
cmd("prune")
|
||||||
refute (share/"pruneable").directory?
|
refute((share/"pruneable").directory?)
|
||||||
assert (share/"notpruneable").directory?
|
assert((share/"notpruneable").directory?)
|
||||||
refute (share/"pruneable_symlink").symlink?
|
refute((share/"pruneable_symlink").symlink?)
|
||||||
|
|
||||||
# Inexact match because only if ~/Applications exists, will this output one
|
# Inexact match because only if ~/Applications exists, will this output one
|
||||||
# more line with contents `No apps unlinked from /Users/<user/Applications`.
|
# more line with contents `No apps unlinked from /Users/<user/Applications`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user