use specific namespace for datagouv cron jobs
This commit is contained in:
parent
b6c96301ef
commit
bed6167010
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
|
@ -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
|
Loading…
Reference in a new issue