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