demarches-normaliennes/spec/lib/tasks/task_helper_spec.rb

17 lines
357 B
Ruby
Raw Normal View History

# frozen_string_literal: true
describe ProgressReport, lib: true do
context 'when the count pass above 100%' do
let(:total) { 2 }
subject(:progress) { ProgressReport.new(total) }
it 'doesnt raise errors' do
expect do
(total + 2).times { progress.inc }
progress.finish
end.not_to raise_error
end
end
end