fix rubocop offenses

This commit is contained in:
Christophe Robillard 2021-04-21 18:19:55 +02:00
parent aa407d5607
commit 9134114c2e
3 changed files with 8 additions and 10 deletions

View file

@ -10,7 +10,6 @@ class ProcedureArchiveService
.groupe_instructeurs
.where(procedure: @procedure)
archive = Archive.for_groupe_instructeur(groupe_instructeurs).find_by(
content_type: type,
month: month

View file

@ -6,7 +6,6 @@ describe ProcedureArchiveService do
let(:month) { 3 }
let(:date_month) { Date.strptime("#{year}-#{month}", "%Y-%m") }
describe '#create_pending_archive' do
context 'for a specific month' do
it 'creates a pending archive' do
archive = service.create_pending_archive(instructeur, 'monthly', date_month)