Commit a71dcfe2 authored by Kev's avatar Kev

Add test to line_spec.rb

parent f688762e
......@@ -58,6 +58,15 @@ RSpec.describe Gitlab::Ci::Ansi2json::Line do
end
end
describe '#set_section_options' do
it 'sets the current section\'s options' do
options = { collapsed: true }
subject.set_section_options(options)
expect(subject.to_h[:section_options]).to eq(options)
end
end
describe '#set_as_section_header' do
it 'change the section_header to true' do
expect { subject.set_as_section_header }
......
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