From dea600046aa5895e745a8d655ff90616705e11a6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 9 Dec 2020 13:10:28 +0900 Subject: [PATCH] Ad-hoc fix of test-bundler --- spec/bundler/bundler/cli_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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