Adjust Reaction usecase specs to also use IDs

This commit is contained in:
Andreas Nedbal 2024-03-19 22:07:13 +01:00 committed by Andreas Nedbal
parent cc7fa787e8
commit b2185987ac
2 changed files with 2 additions and 2 deletions

View File

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

View File

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