Commit 03055503 authored by Robert Speicher's avatar Robert Speicher

Use `output` matcher in one test

parent 9fc97849
...@@ -118,10 +118,7 @@ describe GitlabKeys do ...@@ -118,10 +118,7 @@ describe GitlabKeys do
end end
it 'outputs the key IDs, separated by newlines' do it 'outputs the key IDs, separated by newlines' do
output = capture_stdout do expect { gitlab_keys.send(:list_key_ids) }.to output("1\n2\n3\n9000\n").to_stdout
gitlab_keys.send(:list_key_ids)
end
expect(output).to match "1\n2\n3\n9000"
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment