diff options
author | Patrick Metcalfe <git@patrickmetcalfe.com> | 2015-04-28 18:37:24 -0500 |
---|---|---|
committer | Patrick Metcalfe <git@patrickmetcalfe.com> | 2015-04-28 18:37:24 -0500 |
commit | 73645e9507f560635bd2e0d2737af44fdaed6519 (patch) | |
tree | 463425b46cce23723fe8c02fc0b06cb1a2201218 | |
parent | 3c4aa6d6ef734aa9b4bbb18973f83333aba3a88f (diff) | |
download | bundler-73645e9507f560635bd2e0d2737af44fdaed6519.tar.gz |
add specs
-rw-r--r-- | spec/bundler/settings_spec.rb | 13 | ||||
-rw-r--r-- | spec/install/gems/post_install_spec.rb | 14 |
2 files changed, 27 insertions, 0 deletions
diff --git a/spec/bundler/settings_spec.rb b/spec/bundler/settings_spec.rb index e1dd61bead..cb8440689e 100644 --- a/spec/bundler/settings_spec.rb +++ b/spec/bundler/settings_spec.rb @@ -27,6 +27,19 @@ describe Bundler::Settings do expect(settings[:buttermilk]).to be nil end end + + context "when is boolean" do + it "returns a boolean" do + settings[:frozen] = "true" + expect(settings[:frozen]).to be true + end + context "when specific gem is configured" do + it "returns a boolean" do + settings["ignore_messages.foobar"] = "true" + expect(settings["ignore_messages.foobar"]).to be true + end + end + end end diff --git a/spec/install/gems/post_install_spec.rb b/spec/install/gems/post_install_spec.rb index e12c3e3827..76a3a6ca0d 100644 --- a/spec/install/gems/post_install_spec.rb +++ b/spec/install/gems/post_install_spec.rb @@ -133,4 +133,18 @@ describe "bundle install" do expect(out).not_to include("Post-install message") end end + + context "when ignore post-install messages for all gems" do + it "doesn't display any post-install messages" do + gemfile <<-G + source "file://#{gem_repo1}" + gem "rack" + G + + bundle "config ignore_messages true" + + bundle :install + expect(out).not_to include("Post-install message") + end + end end |