Fix failing tests [SCI-3177]

This commit is contained in:
Oleksii Kriuchykhin 2019-04-17 12:58:47 +02:00
parent f9832013b0
commit 96cf7b4de2

View file

@ -33,6 +33,8 @@ describe TeamImporter do
@exp = @team_importer.import_experiment_template_from_dir(TEMPLATE_DIR, @exp = @team_importer.import_experiment_template_from_dir(TEMPLATE_DIR,
PROJECT_ID, PROJECT_ID,
USER_ID) USER_ID)
Experiments::GenerateWorkflowImageService.call(experiment_id: @exp.id)
@exp.reload
end end
describe 'Experiment variables' do describe 'Experiment variables' do
@ -51,12 +53,7 @@ describe TeamImporter do
it { expect(@exp.restored_by_id).to be_nil } it { expect(@exp.restored_by_id).to be_nil }
it { expect(@exp.restored_on).to be_nil } it { expect(@exp.restored_on).to be_nil }
it do it { expect(@exp.workflowimg.exists?).to eq(true) }
expect(@exp.workflowimg_updated_at).to eq(
'2019-01-21T13:31:04.682Z'.to_time
)
end
it { expect(@exp.workflowimg_file_size).to eq 4581 }
end end
describe 'Module groups' do describe 'Module groups' do