From 4dee7ed6d917c507d4ea076544308e810aca43e7 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 22 Jan 2019 15:19:31 +0800 Subject: [PATCH] DEV: Fix randomlly failing spec. --- spec/requests/notifications_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/notifications_controller_spec.rb b/spec/requests/notifications_controller_spec.rb index e22721f82b..19a525dd99 100644 --- a/spec/requests/notifications_controller_spec.rb +++ b/spec/requests/notifications_controller_spec.rb @@ -106,7 +106,7 @@ describe NotificationsController do describe '#update' do it "can't update notification" do - update_notification(8, 403, :to_not) + update_notification(Fabricate(:topic).id, 403, :to_not) end end @@ -160,7 +160,7 @@ describe NotificationsController do describe '#update' do it "can't update notification" do - update_notification(8, 403, :to_not) + update_notification(Fabricate(:topic).id, 403, :to_not) end end