diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-12-24 18:20:46 +0100 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-12-26 14:53:47 -0600 |
commit | 9dd45bda26185200ca1afec0cf33ca6be2011044 (patch) | |
tree | 42b98a045d698ab1bb1108d4ce53b8b16c3b89cd | |
parent | 5f787b97e0185827bb8ddd8230d3faf9bc55c4f1 (diff) | |
download | bundler-9dd45bda26185200ca1afec0cf33ca6be2011044.tar.gz |
Add a spec for BUNDLE_IGNORE_CONFIG
-rw-r--r-- | spec/bundler/settings_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/bundler/settings_spec.rb b/spec/bundler/settings_spec.rb index 5a9d0cb08b..04e221a57c 100644 --- a/spec/bundler/settings_spec.rb +++ b/spec/bundler/settings_spec.rb @@ -51,6 +51,15 @@ that would suck --ehhh=oh geez it looks like i might have broken bundler somehow end] expect(loaded).to eq(expected) end + + context "when BUNDLE_IGNORE_CONFIG is set" do + before { ENV["BUNDLE_IGNORE_CONFIG"] = "TRUE" } + + it "ignores the config" do + loaded = settings.send(:load_config, bundled_app("config")) + expect(loaded).to eq({}) + end + end end describe "#[]" do |