From b2185987aca548d085fb873c84e49699af549a2e Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Tue, 19 Mar 2024 22:07:13 +0100 Subject: [PATCH] Adjust Reaction usecase specs to also use IDs --- spec/lib/use_case/reaction/create_spec.rb | 2 +- spec/lib/use_case/reaction/destroy_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/use_case/reaction/create_spec.rb b/spec/lib/use_case/reaction/create_spec.rb index 243b227a..d33b258f 100644 --- a/spec/lib/use_case/reaction/create_spec.rb +++ b/spec/lib/use_case/reaction/create_spec.rb @@ -9,7 +9,7 @@ describe UseCase::Reaction::Create do end end - subject { UseCase::Reaction::Create.call(source_user: user, target:) } + subject { UseCase::Reaction::Create.call(source_user_id: user.id, target:) } let(:user) { FactoryBot.create(:user) } diff --git a/spec/lib/use_case/reaction/destroy_spec.rb b/spec/lib/use_case/reaction/destroy_spec.rb index f979db66..160b53b5 100644 --- a/spec/lib/use_case/reaction/destroy_spec.rb +++ b/spec/lib/use_case/reaction/destroy_spec.rb @@ -13,7 +13,7 @@ describe UseCase::Reaction::Destroy do end end - subject { UseCase::Reaction::Destroy.call(source_user: user, target:) } + subject { UseCase::Reaction::Destroy.call(source_user_id: user.id, target:) } let(:user) { FactoryBot.create(:user) }