use specific namespace for datagouv cron jobs

This commit is contained in:
Christophe Robillard 2022-07-21 15:04:14 +02:00
parent b6c96301ef
commit bed6167010
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
class Cron::ExportAndPublishDemarchesPubliquesJob < Cron::CronJob
class Cron::Datagouv::ExportAndPublishDemarchesPubliquesJob < Cron::CronJob
self.schedule_expression = "every month at 3:00"
def perform(*args)

View file

@ -1,4 +1,4 @@
RSpec.describe Cron::ExportAndPublishDemarchesPubliquesJob, type: :job do
RSpec.describe Cron::Datagouv::ExportAndPublishDemarchesPubliquesJob, type: :job do
let!(:procedure) { create(:procedure, :published, :with_service, :with_type_de_champ) }
let(:status) { 200 }
let(:body) { "ok" }
@ -9,7 +9,7 @@ RSpec.describe Cron::ExportAndPublishDemarchesPubliquesJob, type: :job do
stub
end
subject { Cron::ExportAndPublishDemarchesPubliquesJob.perform_now }
subject { Cron::Datagouv::ExportAndPublishDemarchesPubliquesJob.perform_now }
it 'send POST request to datagouv' do
subject