Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/bin
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-05-18 19:56:26 +0300
committerRémy Coutable <remy@rymai.me>2017-05-18 19:56:26 +0300
commitbdf5b6adc34ae2856bddea62ce449fa452aee761 (patch)
tree5caaa4a12c6939cb1d4e2daaabe4a3714ff67cb4 /spec/bin
parent06b614f9fd7a311b9cbc6ad90eecb4cfc5281c78 (diff)
Enable the RSpec/ExpectOutput cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/bin')
-rw-r--r--spec/bin/changelog_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/bin/changelog_spec.rb b/spec/bin/changelog_spec.rb
index 7f4298db59f..91aff0db7cc 100644
--- a/spec/bin/changelog_spec.rb
+++ b/spec/bin/changelog_spec.rb
@@ -46,9 +46,7 @@ describe 'bin/changelog' do
it 'parses -h' do
expect do
- $stdout = StringIO.new
-
- described_class.parse(%w[foo -h bar])
+ expect { described_class.parse(%w[foo -h bar]) }.to output.to_stdout
end.to raise_error(SystemExit)
end