aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorXu Cheng2016-04-12 18:51:43 +0800
committerXu Cheng2016-04-12 18:51:43 +0800
commit548be81b34517e194c606c632373ffba8b412c34 (patch)
tree8ce958f19637576458542e789728ca5f433b1e63 /Library/Homebrew/test
parentf57739deda5a1ee099d1acab18384a130a9b95ad (diff)
downloadbrew-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.rb10
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