mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 11:14:24 +08:00
Fix tests
This commit is contained in:
parent
5be7a1b32d
commit
a9d8d008a3
1 changed files with 3 additions and 3 deletions
|
@ -189,12 +189,12 @@ describe Experiment, type: :model do
|
|||
expect(Activities::CreateActivityService)
|
||||
.to(receive(:call)
|
||||
.with(hash_including(activity_type:
|
||||
:assign_user_to_module))).exactly(3).times
|
||||
:assign_user_to_module))).exactly(6).times
|
||||
function_call
|
||||
end
|
||||
|
||||
it 'creats 3 new activities in DB' do
|
||||
expect { function_call }.to change { Activity.all.count }.by(6)
|
||||
it 'creats 9 new activities in DB (6 for assigning user, 3 for cloning module)' do
|
||||
expect { function_call }.to change { Activity.all.count }.by(9)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue