1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Ad-hoc fix of test-bundler

This commit is contained in:
Nobuyoshi Nakada 2020-12-09 13:10:28 +09:00
parent b419f90a8b
commit dea600046a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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