Fix lint errors in `NotificationController#index` tests

This commit is contained in:
Karina Kwiatek 2023-03-10 21:38:44 +01:00
parent b5a72be288
commit a3dbad5265
1 changed files with 4 additions and 4 deletions

View File

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