Skip to content
代码片段 群组 项目
提交 ec1ae059 编辑于 作者: Anatoli Babenia's avatar Anatoli Babenia
浏览文件

Fix rspec

上级 363fe0f1
No related branches found
No related tags found
无相关合并请求
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
describe '#run' do describe '#run' do
context 'asking for help' do context 'asking for help' do
it 'prints help and exits' do it 'prints help and exits' do
expect { subject.run(%w[--help]) }.to output(/--help Display help/).to_stdout expect { subject.run(%w[--help]) }.to output(/-h, --help Display help/).to_stdout
end end
end end
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
describe '#run' do describe '#run' do
context 'asking for help' do context 'asking for help' do
it 'prints help and exits' do it 'prints help and exits' do
expect { subject.run(%w[--help]) }.to output(/--help Display help/).to_stdout expect { subject.run(%w[-h]) }.to output(/-h, --help Display help/).to_stdout
end end
end end
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
describe '#run' do describe '#run' do
context 'asking for help' do context 'asking for help' do
it 'prints help and exits' do it 'prints help and exits' do
expect { subject.run(%w[--help]) }.to output(/--help Display help/).to_stdout expect { subject.run(%w[--help]) }.to output(/-h, --help Display help/).to_stdout
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册