mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
fix falling test
This commit is contained in:
parent
d706a18e2d
commit
5825c7120d
1 changed files with 2 additions and 2 deletions
|
@ -37,9 +37,9 @@ describe TemplatesService do
|
|||
expect(tmpl_exp.name).to eq(demo_exp.name)
|
||||
expect(tmpl_exp.uuid).to_not eq(nil)
|
||||
expect(tmpl_exp.my_modules.pluck(:name))
|
||||
.to match_array(demo_exp.my_modules.pluck(:name))
|
||||
.to match_array(demo_exp.active_my_modules.pluck(:name))
|
||||
tmpl_tasks = tmpl_exp.my_modules
|
||||
demo_tasks = demo_exp.my_modules
|
||||
demo_tasks = demo_exp.active_my_modules
|
||||
demo_tasks.each do |demo_task|
|
||||
tmpl_task = tmpl_tasks.find_by_name(demo_task.name)
|
||||
expect(tmpl_task.name).to eq(demo_task.name)
|
||||
|
|
Loading…
Reference in a new issue