Fix tests

This commit is contained in:
Urban Rotnik 2020-09-23 13:05:17 +02:00
parent 5be7a1b32d
commit a9d8d008a3

View file

@ -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