Adjust Reaction usecase specs to also use IDs
This commit is contained in:
parent
cc7fa787e8
commit
b2185987ac
|
@ -9,7 +9,7 @@ describe UseCase::Reaction::Create do
|
||||||
end
|
end
|
||||||
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) }
|
let(:user) { FactoryBot.create(:user) }
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe UseCase::Reaction::Destroy do
|
||||||
end
|
end
|
||||||
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) }
|
let(:user) { FactoryBot.create(:user) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue