diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-06-09 18:44:45 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-06-09 18:44:47 +0530 |
commit | df5a8e97044a92965e25a344da89f550ab570956 (patch) | |
tree | 895d8d2c292154d6d034a7c37a3cddda340a4244 /spec/plugins | |
parent | 7804310adb9e0b24798ed0cf33f29666a359ea4d (diff) | |
download | bundler-df5a8e97044a92965e25a344da89f550ab570956.tar.gz |
Added plugin install support for inline Gemfile
Diffstat (limited to 'spec/plugins')
-rw-r--r-- | spec/plugins/install.rb | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/spec/plugins/install.rb b/spec/plugins/install.rb index 03868832..c9c0776f 100644 --- a/spec/plugins/install.rb +++ b/spec/plugins/install.rb @@ -19,6 +19,7 @@ describe "bundler plugin install" do bundle "plugin install foo --source file://#{gem_repo2}" expect(out).to include("Installed plugin foo") + plugin_should_be_installed("foo") end it "installs multiple plugins" do @@ -26,6 +27,8 @@ describe "bundler plugin install" do expect(out).to include("Installed plugin foo") expect(out).to include("Installed plugin kung-foo") + + plugin_should_be_installed("foo", "kung-foo") end it "uses the same version for multiple plugins" do @@ -38,6 +41,7 @@ describe "bundler plugin install" do expect(out).to include("Installing foo 1.0") expect(out).to include("Installing kung-foo 1.0") + plugin_should_be_installed("foo", "kung-foo") end context "malformatted plugin" do @@ -81,6 +85,7 @@ describe "bundler plugin install" do bundle "plugin install foo --git file://#{lib_path("foo-1.0")}" expect(out).to include("Installed plugin foo") + plugin_should_be_installed("foo") end end @@ -99,6 +104,7 @@ describe "bundler plugin install" do expect(out).to include("Bundle complete!") should_be_installed("rack 1.0.0") + plugin_should_be_installed("foo") end it "accepts plugin version" do @@ -115,7 +121,7 @@ describe "bundler plugin install" do expect(out).to include("Installing foo 1.0") - expect(out).to include("Installed plugin foo") + plugin_should_be_installed("foo") expect(out).to include("Bundle complete!") end @@ -130,6 +136,23 @@ describe "bundler plugin install" do G expect(out).to include("Installed plugin ga-plugin") + plugin_should_be_installed("ga-plugin") + end + end + + context "inline gemfiles" do + it "installs the listed plugins" do + code = <<-RUBY + require "bundler/inline" + + gemfile do + source 'file://#{gem_repo2}' + plugin 'foo' + end + RUBY + + ruby code + plugin_should_be_installed("foo") end end end |