diff options
| author | Mike McQuaid | 2016-09-15 18:28:42 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-15 18:28:42 +0100 |
| commit | 72d10fff0be917df691b02b07b07dccfc8f1d760 (patch) | |
| tree | c07d6946fc7aef94ff9d833c8404f0275d4211d4 /Library/Homebrew/test/test_integration_cmds.rb | |
| parent | 099295163412b19470c500406738c50c2fb2fc8f (diff) | |
| download | brew-72d10fff0be917df691b02b07b07dccfc8f1d760.tar.bz2 | |
Use constants for LinkedKegs/PinnedKegs/Locks.
These definitions are scattered throughout the codebase which makes it
hard to refactor them later (my goal is to move them outside of
HOMEBREW_LIBRARY). Unify their definitions for clearer code and easier
movement later.
Diffstat (limited to 'Library/Homebrew/test/test_integration_cmds.rb')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 812d26ba5..5b64dfd85 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -22,7 +22,7 @@ class IntegrationCommandTests < Homebrew::TestCase HOMEBREW_PREFIX/"bin", HOMEBREW_PREFIX/"share", HOMEBREW_PREFIX/"opt", - HOMEBREW_LIBRARY/"LinkedKegs", + HOMEBREW_LINKED_KEGS, HOMEBREW_LIBRARY/"Taps/caskroom", HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-bundle", HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo", @@ -533,12 +533,12 @@ class IntegrationCommandTests < Homebrew::TestCase setup_test_formula "testball" HOMEBREW_CELLAR.join("testball/0.1").mkpath - HOMEBREW_LIBRARY.join("PinnedKegs").mkpath - FileUtils.ln_s HOMEBREW_CELLAR.join("testball/0.1"), HOMEBREW_LIBRARY.join("PinnedKegs/testball") + HOMEBREW_PINNED_KEGS.mkpath + FileUtils.ln_s HOMEBREW_CELLAR.join("testball/0.1"), HOMEBREW_PINNED_KEGS/"testball" assert_match "testball is pinned. You must unpin it to reinstall.", cmd("reinstall", "testball") - HOMEBREW_LIBRARY.join("PinnedKegs").rmtree + HOMEBREW_PINNED_KEGS.rmtree end def test_home |
