summaryrefslogtreecommitdiff
path: root/spec/bin
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-05-18 18:56:26 +0200
committerRémy Coutable <remy@rymai.me>2017-05-18 18:56:26 +0200
commitbdf5b6adc34ae2856bddea62ce449fa452aee761 (patch)
tree5caaa4a12c6939cb1d4e2daaabe4a3714ff67cb4 /spec/bin
parent06b614f9fd7a311b9cbc6ad90eecb4cfc5281c78 (diff)
downloadgitlab-ce-bdf5b6adc34ae2856bddea62ce449fa452aee761.tar.gz
Enable the RSpec/ExpectOutput coprubocop-expect-output
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