summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2017-05-23 11:28:57 +1000
committerColby Swandale <colby@taplaboratories.com>2017-05-23 11:28:57 +1000
commita5c83b88e0422fef0706e950751bace63bcdcfda (patch)
treedc0ac848596c087d8fbfdfdcf17ae9ed530be64a
parentac374e57e6e3da826cedf1508242118ce64a3985 (diff)
downloadbundler-colby/stderr-feature.tar.gz
use Settings.temporary to set error_on_stderr feature flag in rspeccolby/stderr-feature
-rw-r--r--spec/bundler/ui/shell_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/ui/shell_spec.rb b/spec/bundler/ui/shell_spec.rb
index 050fb9c1fb..c5ccce534a 100644
--- a/spec/bundler/ui/shell_spec.rb
+++ b/spec/bundler/ui/shell_spec.rb
@@ -40,7 +40,7 @@ RSpec.describe Bundler::UI::Shell do
end
context "when stderr flag is enabled" do
- before { bundle "config error_on_stderr true" }
+ before { Bundler.settings.temporary(:error_on_stderr => true) }
it "prints to stderr" do
expect { subject.error("error!!!") }.to output("error!!!\n").to_stderr
end