aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cask/cli_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-24 20:34:20 +0200
committerMarkus Reiter2017-05-24 20:34:20 +0200
commitb91d0254bbd07b7b0ddf3906cb6c08684ebc07ef (patch)
tree80ec2554ba33379d59f015b2c420395058b1386e /Library/Homebrew/test/cask/cli_spec.rb
parentd025e0e7ab690db01b1bf99540c3564ab753d8c6 (diff)
downloadbrew-b91d0254bbd07b7b0ddf3906cb6c08684ebc07ef.tar.bz2
Add test for `--binaries` default value.
Diffstat (limited to 'Library/Homebrew/test/cask/cli_spec.rb')
-rw-r--r--Library/Homebrew/test/cask/cli_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cask/cli_spec.rb b/Library/Homebrew/test/cask/cli_spec.rb
index d5bfba754..baad160c3 100644
--- a/Library/Homebrew/test/cask/cli_spec.rb
+++ b/Library/Homebrew/test/cask/cli_spec.rb
@@ -13,6 +13,13 @@ describe Hbc::CLI, :cask do
])
end
+ context "when no option is specified" do
+ it "--binaries is true by default" do
+ command = Hbc::CLI::Install.new("some-cask")
+ expect(command.binaries?).to be true
+ end
+ end
+
context "::run" do
let(:noop_command) { double("CLI::Noop") }