Move `NotificationsController#index` test into their own `describe` block
This commit is contained in:
parent
80d8bebe57
commit
0db44949e6
|
@ -3,6 +3,7 @@
|
|||
require "rails_helper"
|
||||
|
||||
describe NotificationsController do
|
||||
describe "#index" do
|
||||
subject { get :index, params: { type: :new } }
|
||||
|
||||
let(:user) { FactoryBot.create(:user) }
|
||||
|
@ -38,4 +39,5 @@ describe NotificationsController do
|
|||
expect { subject }.to change { Notification.for(user).where(new: true).count }.from(2).to(0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue