mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-09 16:01:30 +08:00
Fix failing tests [SCI-3177]
This commit is contained in:
parent
f9832013b0
commit
96cf7b4de2
1 changed files with 4 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue