summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-09 13:10:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-09 13:10:28 +0900
commitdea600046aa5895e745a8d655ff90616705e11a6 (patch)
treeb2412ad7805b27ffb756837ba83801aa2f89218e /spec
parentb419f90a8bc3e472635a813e56cc2153b3125b41 (diff)
Ad-hoc fix of test-bundler
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