diff options
| author | Josh Hagins | 2016-10-10 12:02:12 -0400 | 
|---|---|---|
| committer | Josh Hagins | 2016-10-24 16:21:08 -0400 | 
| commit | 9c519bbdbc1723c9f35e4fbc8ba594ac8d81d258 (patch) | |
| tree | 4278fefe623f173ea73ec28c4d106eb3ff3a11bc /Library/Homebrew/test/test_tab.rb | |
| parent | 5b64fa6fb179bee5e45e16bb4f860579d76d4210 (diff) | |
| download | brew-9c519bbdbc1723c9f35e4fbc8ba594ac8d81d258.tar.bz2 | |
keg_relocate: refactor relocate_text_files
Replace relocate_text_files with three methods that clarify intent:
replace_locations_with_placeholders, replace_placeholders_with_locations
and replace_text_in_files, the first two calling the third.
Diffstat (limited to 'Library/Homebrew/test/test_tab.rb')
| -rw-r--r-- | Library/Homebrew/test/test_tab.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb index 3db7bbea1..2c756cf68 100644 --- a/Library/Homebrew/test/test_tab.rb +++ b/Library/Homebrew/test/test_tab.rb @@ -34,7 +34,7 @@ class TabTests < Homebrew::TestCase      tab = Tab.empty      assert_empty tab.unused_options      assert_empty tab.used_options -    assert_empty tab.changed_files +    assert_nil tab.changed_files      refute_predicate tab, :built_as_bottle      refute_predicate tab, :poured_from_bottle      assert_predicate tab, :stable?  | 
