Simplify User.comment_notifiable scope

This commit is contained in:
Andrew Kvalheim 2022-03-31 17:30:50 -07:00
parent c9f410e68a
commit 9d4af0dcd3
4 changed files with 8 additions and 10 deletions

View file

@ -88,11 +88,11 @@ describe User do
let(:cfp_user) { create(:user, role_ids: [cfp_role.id]) }
it 'includes organizer and cfp user' do
expect(User.comment_notifiable(conference)).to include(organizer, cfp_user)
expect(User.comment_notifiable(conference.id)).to include(organizer, cfp_user)
end
it 'excludes ordinary user' do
expect(User.comment_notifiable(conference)).not_to include(user)
expect(User.comment_notifiable(conference.id)).not_to include(user)
end
end