From a9d8d008a30d42886b87ebc8a2a0042b9f20f8ad Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Wed, 23 Sep 2020 13:05:17 +0200 Subject: [PATCH] Fix tests --- spec/models/experiment_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/experiment_spec.rb b/spec/models/experiment_spec.rb index c68ca534d..978f9af09 100644 --- a/spec/models/experiment_spec.rb +++ b/spec/models/experiment_spec.rb @@ -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