summaryrefslogtreecommitdiff
path: root/spec/bundler/cli_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/cli_spec.rb')
-rw-r--r--spec/bundler/cli_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/bundler/cli_spec.rb b/spec/bundler/cli_spec.rb
index 32eecbc49d..26afbcb343 100644
--- a/spec/bundler/cli_spec.rb
+++ b/spec/bundler/cli_spec.rb
@@ -24,4 +24,11 @@ describe "bundle executable" do
expect(exitstatus).to be_zero if exitstatus
expect(out).to eq("Hello, world")
end
+
+ it "prints help when ARGV is empty" do
+ bundle :help
+ help_output = out
+ bundle ''
+ expect(out).to eq(help_output)
+ end
end