-
Notifications
You must be signed in to change notification settings - Fork 37
TAN-5756 Emails flagging and new comment bugs #12407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
|
|
||
| expect(command).to match( | ||
| event_payload: a_hash_including( | ||
| flaggable_author_name: 'Biggus Dickus', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. just think the test descriptions need changing - for me they are describing the inverse of what they are doing
| it 'filters out moderators' do | ||
| expect(campaign.filter_recipient(User.all, activity:).ids).to match_array([admin.id, moderator.id]) | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Struggling with the language here. Do you mean it includes all admins and moderators? It's not filtering out anything?
| context 'when the author is a moderator' do | ||
| let(:author) { create(:project_moderator, projects: [idea.project]) } | ||
|
|
||
| it 'filters out no one if the author is a moderator' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise here - it includes no one
| context 'when there is no author' do | ||
| let(:author) { nil } | ||
|
|
||
| it 'filters out moderators' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
Changelog
Fixed