summaryrefslogtreecommitdiff
path: root/spec/commands/licenses_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/commands/licenses_spec.rb')
-rw-r--r--spec/commands/licenses_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/commands/licenses_spec.rb b/spec/commands/licenses_spec.rb
index c8d5ff739e..e2aba5a717 100644
--- a/spec/commands/licenses_spec.rb
+++ b/spec/commands/licenses_spec.rb
@@ -15,4 +15,17 @@ describe "bundle licenses" do
expect(out).to include("actionpack: Unknown")
expect(out).to include("with_license: MIT")
end
+
+ it "performs an automatic bundle install" do
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rails"
+ gem "with_license"
+ gem "foo"
+ G
+
+ bundle "config auto_install 1"
+ bundle :licenses
+ expect(out).to include("Installing foo 1.0")
+ end
end