From 96cf7b4de2aca68819d390eb46bd6620e9a08213 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 17 Apr 2019 12:58:47 +0200 Subject: [PATCH] Fix failing tests [SCI-3177] --- spec/services/model_importers/team_importer_spec.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/spec/services/model_importers/team_importer_spec.rb b/spec/services/model_importers/team_importer_spec.rb index 4ca8e32ae..9a748cb4a 100644 --- a/spec/services/model_importers/team_importer_spec.rb +++ b/spec/services/model_importers/team_importer_spec.rb @@ -29,10 +29,12 @@ describe TeamImporter do PROJECT_ID = @project.id USER_ID = @user.id - @team_importer = TeamImporter.new + @team_importer = TeamImporter.new @exp = @team_importer.import_experiment_template_from_dir(TEMPLATE_DIR, PROJECT_ID, USER_ID) + Experiments::GenerateWorkflowImageService.call(experiment_id: @exp.id) + @exp.reload end describe 'Experiment variables' do @@ -51,12 +53,7 @@ describe TeamImporter do it { expect(@exp.restored_by_id).to be_nil } it { expect(@exp.restored_on).to be_nil } - it do - 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 } + it { expect(@exp.workflowimg.exists?).to eq(true) } end describe 'Module groups' do