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:
parent
b419f90a8b
commit
dea600046a
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue