aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/test
diff options
context:
space:
mode:
authorJosh Hagins2016-10-23 12:18:57 -0400
committerGitHub2016-10-23 12:18:57 -0400
commit5a03b492f41bb6e362f2d57673d754391b5cd558 (patch)
tree65688fc105eb066ee98f0c5e81d6375d4e3476f0 /Library/Homebrew/cask/test
parent773d20fb0c23439f3efbb9ecb1475c5cbe5b3957 (diff)
parent0b176f9cc8ee4f95271fc398b6e9a521bda9ebdb (diff)
downloadbrew-5a03b492f41bb6e362f2d57673d754391b5cd558.tar.bz2
Merge pull request #1350 from Eitot/dictionary
Cask: add dictionary artifact
Diffstat (limited to 'Library/Homebrew/cask/test')
-rw-r--r--Library/Homebrew/cask/test/cask/cli/options_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/test/cask/cli/options_test.rb b/Library/Homebrew/cask/test/cask/cli/options_test.rb
index 32bd2e2d7..d49e7827b 100644
--- a/Library/Homebrew/cask/test/cask/cli/options_test.rb
+++ b/Library/Homebrew/cask/test/cask/cli/options_test.rb
@@ -57,6 +57,20 @@ describe Hbc::CLI do
Hbc.colorpickerdir.must_equal Pathname("/some/path/bar")
end
+ it "supports setting the dictionarydir" do
+ Hbc::CLI.process_options %w[help --dictionarydir=/some/path/foo]
+
+ Hbc.dictionarydir.must_equal Pathname("/some/path/foo")
+ end
+
+ it "supports setting the dictionarydir from ENV" do
+ ENV["HOMEBREW_CASK_OPTS"] = "--dictionarydir=/some/path/bar"
+
+ Hbc::CLI.process_options %w[help]
+
+ Hbc.dictionarydir.must_equal Pathname("/some/path/bar")
+ end
+
it "supports setting the fontdir" do
Hbc::CLI.process_options %w[help --fontdir=/some/path/foo]