Commit a1cddf05 authored by Shinya Maeda's avatar Shinya Maeda

Reproduced

parent 34939c89
...@@ -240,10 +240,18 @@ describe Gitlab::Ci::Trace::Stream do ...@@ -240,10 +240,18 @@ describe Gitlab::Ci::Trace::Stream do
end end
context 'multiple results in content & regex' do context 'multiple results in content & regex' do
let(:data) { ' (98.39%) covered. (98.29%) covered' } let(:data) do
<<~HEREDOC
(98.39%) covered
(98.29%) covered
HEREDOC
end
let(:regex) { '\(\d+.\d+\%\) covered' } let(:regex) { '\(\d+.\d+\%\) covered' }
it { is_expected.to eq("98.29") } it 'returns the last matched coverage' do
is_expected.to eq("98.29")
end
end end
context 'using a regex capture' do context 'using a regex capture' do
......
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