diff options
author | Rémy Coutable <remy@rymai.me> | 2017-05-18 18:56:26 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-05-18 18:56:26 +0200 |
commit | bdf5b6adc34ae2856bddea62ce449fa452aee761 (patch) | |
tree | 5caaa4a12c6939cb1d4e2daaabe4a3714ff67cb4 /spec/bin | |
parent | 06b614f9fd7a311b9cbc6ad90eecb4cfc5281c78 (diff) | |
download | gitlab-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.rb | 4 |
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 |