diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2018-11-24 18:25:51 +0000 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2018-11-24 18:25:51 +0000 |
commit | c6142c76301ce2cb47c7751700586a56cfdda8b4 (patch) | |
tree | 5e36f3cfcc6eadc4f4eee2ad44be3d461bd64402 /spec/plugins/install_spec.rb | |
parent | 6426fe56aedb7517f6db72f071d507f86fe2b644 (diff) | |
download | bundler-segiddins/plugins-ignore-deployment.tar.gz |
[Plugin] Ignore the deployment settingsegiddins/plugins-ignore-deployment
This allows installing plugins when the bundler is frozen, since plugins are not locked anyways
Diffstat (limited to 'spec/plugins/install_spec.rb')
-rw-r--r-- | spec/plugins/install_spec.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/plugins/install_spec.rb b/spec/plugins/install_spec.rb index 3f8a5940fe..29017c2afa 100644 --- a/spec/plugins/install_spec.rb +++ b/spec/plugins/install_spec.rb @@ -191,6 +191,28 @@ RSpec.describe "bundler plugin install" do expect(out).to include("Installed plugin ga-plugin") plugin_should_be_installed("ga-plugin") end + + context "in deployment mode" do + it "installs plugins" do + install_gemfile! <<-G + source 'file://#{gem_repo2}' + gem 'rack', "1.0.0" + G + + install_gemfile! <<-G, forgotten_command_line_options(:deployment => true) + source 'file://#{gem_repo2}' + plugin 'foo' + gem 'rack', "1.0.0" + G + + expect(out).to include("Installed plugin foo") + + expect(out).to include("Bundle complete!") + + expect(the_bundle).to include_gems("rack 1.0.0") + plugin_should_be_installed("foo") + end + end end context "inline gemfiles" do |