diff options
| author | Xu Cheng | 2016-04-12 18:51:43 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-04-12 18:51:43 +0800 |
| commit | 548be81b34517e194c606c632373ffba8b412c34 (patch) | |
| tree | 8ce958f19637576458542e789728ca5f433b1e63 /Library/Homebrew/test | |
| parent | f57739deda5a1ee099d1acab18384a130a9b95ad (diff) | |
| download | brew-548be81b34517e194c606c632373ffba8b412c34.tar.bz2 | |
tap: various improvements (#77)
* make `read_or_set_private_config` private
* add doc
* add test
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_tap.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_tap.rb b/Library/Homebrew/test/test_tap.rb index 0b2671698..a6b81dc95 100644 --- a/Library/Homebrew/test/test_tap.rb +++ b/Library/Homebrew/test/test_tap.rb @@ -231,6 +231,16 @@ class TapTest < Homebrew::TestCase @tap.unpin refute_predicate @tap, :pinned? end + + def test_config + setup_git_repo + + assert_nil @tap.config["foo"] + @tap.config["foo"] = "bar" + assert_equal "bar", @tap.config["foo"] + @tap.config["foo"] = nil + assert_nil @tap.config["foo"] + end end class CoreTapTest < Homebrew::TestCase |
