ruby-changes:64035
From: Nobuyoshi <ko1@a...>
Date: Wed, 9 Dec 2020 13:11:54 +0900 (JST)
Subject: [ruby-changes:64035] dea600046a (master): Ad-hoc fix of test-bundler
https://git.ruby-lang.org/ruby.git/commit/?id=dea600046a From dea600046aa5895e745a8d655ff90616705e11a6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 9 Dec 2020 13:10:28 +0900 Subject: Ad-hoc fix of test-bundler diff --git a/spec/bundler/bundler/cli_spec.rb b/spec/bundler/bundler/cli_spec.rb index 8e4f9e6..dc7d4a5 100644 --- a/spec/bundler/bundler/cli_spec.rb +++ b/spec/bundler/bundler/cli_spec.rb @@ -2,6 +2,16 @@ https://github.com/ruby/ruby/blob/trunk/spec/bundler/bundler/cli_spec.rb#L2 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/