Fix test for due_date [SCI-9570] (#6669)

This commit is contained in:
ajugo 2023-11-20 11:46:00 +01:00 committed by GitHub
parent 1a82ff8d94
commit 790038fdc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ describe MyModulesController, type: :controller do
context 'when setting due_date' do
let(:params) do
{ id: my_module.id, my_module: { due_date: '03/21/2019 23:59' } }
{ id: my_module.id, my_module: { due_date: '2019/03/21 23:59' } }
end
it 'calls create activity for setting due date' do
@ -74,7 +74,7 @@ describe MyModulesController, type: :controller do
context 'when updating due_date' do
let(:params) do
{ id: my_module.id, my_module: { due_date: '02/21/2019 23:59' } }
{ id: my_module.id, my_module: { due_date: '2019/02/21 23:59' } }
end
let(:my_module) do
create :my_module, :with_due_date, experiment: experiment, created_by: experiment.created_by