summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/bundler/cli_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/bundler/bundler/cli_spec.rb b/spec/bundler/bundler/cli_spec.rb
index 8e4f9e6d36..dc7d4a50aa 100644
--- a/spec/bundler/bundler/cli_spec.rb
+++ b/spec/bundler/bundler/cli_spec.rb
@@ -2,6 +2,16 @@
require "bundler/cli"
+using Module.new {
+ # Some `man` (e.g., on macOS) always highlights the output even to
+ # non-tty.
+ refine Spec::Helpers do
+ def out
+ super.gsub(/.[\b]/, '')
+ end
+ end
+}
+
RSpec.describe "bundle executable" do
it "returns non-zero exit status when passed unrecognized options" do
bundle "--invalid_argument", :raise_on_error => false