diff options
| author | Martin Afanasjew | 2016-04-20 01:42:14 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-04-20 01:42:14 +0200 |
| commit | d183ff8065aafd3def71f9c9c728a3a92c1c4742 (patch) | |
| tree | a703c300d457f9dc364334475fa02b580640b427 /Library/Homebrew/test | |
| parent | 980001341dfa1bf43aa988be67f8adb514d92ea1 (diff) | |
| download | brew-d183ff8065aafd3def71f9c9c728a3a92c1c4742.tar.bz2 | |
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
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 78819a5c6..38cfe5e24 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -412,8 +412,8 @@ class IntegrationCommandTests < Homebrew::TestCase (HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath cmd("upgrade") - assert (HOMEBREW_CELLAR/"testball/0.1").directory?, - "The latest version directory should be created" + assert((HOMEBREW_CELLAR/"testball/0.1").directory?, + "The latest version directory should be created") ensure formula_file.unlink cmd("uninstall", "--force", testball) @@ -483,13 +483,13 @@ class IntegrationCommandTests < Homebrew::TestCase cmd("pin", "testball") cmd("upgrade") - refute (HOMEBREW_CELLAR/"testball/0.1").directory?, - "The latest version directory should NOT be created" + refute((HOMEBREW_CELLAR/"testball/0.1").directory?, + "The latest version directory should NOT be created") cmd("unpin", "testball") cmd("upgrade") - assert (HOMEBREW_CELLAR/"testball/0.1").directory?, - "The latest version directory should be created" + assert((HOMEBREW_CELLAR/"testball/0.1").directory?, + "The latest version directory should be created") ensure formula_file.unlink cmd("uninstall", "--force", testball) @@ -566,8 +566,8 @@ class IntegrationCommandTests < Homebrew::TestCase EOS cmd("fetch", "testball") - assert (HOMEBREW_CACHE/"testball-0.1.tbz").exist?, - "The tarball should have been cached" + assert((HOMEBREW_CACHE/"testball-0.1.tbz").exist?, + "The tarball should have been cached") ensure formula_file.unlink cmd("cleanup", "--force", "--prune=all") @@ -690,9 +690,9 @@ class IntegrationCommandTests < Homebrew::TestCase cmd("prune", "--dry-run") assert_match "Pruned 1 symbolic links and 3 directories", cmd("prune") - refute (share/"pruneable").directory? - assert (share/"notpruneable").directory? - refute (share/"pruneable_symlink").symlink? + refute((share/"pruneable").directory?) + assert((share/"notpruneable").directory?) + refute((share/"pruneable_symlink").symlink?) # Inexact match because only if ~/Applications exists, will this output one # more line with contents `No apps unlinked from /Users/<user/Applications`. |
