From a3dbad5265aab0b10ccdb180bef7fcfc2ed1544d Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Fri, 10 Mar 2023 21:38:44 +0100 Subject: [PATCH] Fix lint errors in `NotificationController#index` tests --- spec/controllers/notifications_controller_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/controllers/notifications_controller_spec.rb b/spec/controllers/notifications_controller_spec.rb index 448c2997..0ba10a12 100644 --- a/spec/controllers/notifications_controller_spec.rb +++ b/spec/controllers/notifications_controller_spec.rb @@ -24,10 +24,10 @@ describe NotificationsController do context "user has notifications" do let(:other_user) { FactoryBot.create(:user) } let(:another_user) { FactoryBot.create(:user) } - let(:question) { FactoryBot.create(:question, user: user) } - let!(:answer) { FactoryBot.create(:answer, question: question, user: other_user) } - let!(:subscription) { Subscription.create(user: user, answer: answer) } - let!(:comment) { FactoryBot.create(:comment, answer: answer, user: other_user) } + let(:question) { FactoryBot.create(:question, user:) } + let!(:answer) { FactoryBot.create(:answer, question:, user: other_user) } + let!(:subscription) { Subscription.create(user:, answer:) } + let!(:comment) { FactoryBot.create(:comment, answer:, user: other_user) } it "should show a list of notifications" do subject