This commit is contained in:
Andrew 2023-04-19 13:36:41 +02:00 committed by GitHub
commit a0cdc60ca5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 13 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