Ai
3 Star 0 Fork 8

src-openEuler/rubygem-thor
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-thor-1.2.1-Fix-rspec-mocks-3.11.0-compatibility.patch 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
wubijie 提交于 2023-08-11 10:14 +08:00 . Upgrade to version 1.2.1
From 3da3b44afdf2fa0bd618b87c5d862e9def1d5f4f Mon Sep 17 00:00:00 2001
From: Tim Diggins <tim@red56.uk>
Date: Fri, 4 Mar 2022 11:25:44 +0000
Subject: [PATCH] First fix CI so it's green (see #780, #781)
fix options spec.
allow line_editor spec to be run independently
running `rspec spec/line_editor_spec.rb` generated a double error
when it tries to re require "readline"
fix expectations for ruby 3 treatment of hash arg
try coveralls_reborn to fix ssl errors.
Note that we could also use the coveralls action as recommended
in https://github.com/tagliala/coveralls-ruby-reborn
but it seems like a github token is needed, which makes
it more complex for contributors
This does mean dropping coveralls for EOLed rubies but
do we really need to post to coveralls on each test run?
Wouldn't one test run be enough?
---
spec/parser/options_spec.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletions(-)
diff --git a/spec/parser/options_spec.rb b/spec/parser/options_spec.rb
index b1e50fbf..5caf9f67 100644
--- a/spec/parser/options_spec.rb
+++ b/spec/parser/options_spec.rb
@@ -116,7 +116,9 @@ def remaining
expected = "Unknown switches \"--baz\""
expected << "\nDid you mean? \"--bar\"" if Thor::Correctable
- expect { check_unknown! }.to raise_error(Thor::UnknownArgumentError, expected)
+ expect { check_unknown! }.to raise_error(Thor::UnknownArgumentError) do |error|
+ expect(error.to_s).to eq(expected)
+ end
end
it "skips leading non-switches" do
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rubygem-thor.git
git@gitee.com:src-openeuler/rubygem-thor.git
src-openeuler
rubygem-thor
rubygem-thor
master

搜索帮助