-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Fix notification request specs #1450
Fix notification request specs #1450
Conversation
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.
Two tests are still xit
ed. These two specs check how follow and reaction notifications aggregate. We changed it since the test was written so I left it as-is for now.
@@ -21,5 +21,5 @@ | |||
</span> | |||
</div> | |||
<% else %> | |||
<%= render "aggregated_reactions", notification: notification %> | |||
<%= render "aggregated_reactions", notification: notification, siblings: siblings %> |
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.
Passing along siblings
from this file to aggregated_reactions
instead of defining it twice (once in this file, another in aggregated_reactions
).
expect(response.body).to include message | ||
end | ||
|
||
xit "renders the proper message for a single private reaction" 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.
We no longer have "private user" reactions.
xit "renders the comment's processed HTML" do | ||
expect(response.body).to include CGI.escapeHTML(comment.processed_html) | ||
it "renders the comment's processed HTML" do | ||
expect(response.body).to include comment.processed_html |
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.
Shouldn't need to escape HTML that is already safe.
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.
LGTM
What type of PR is this? (check all applicable)
Description
Fixes all the notification request specs that were
xit
ed. This should help us feel more comfortable making changes to notifications.Also made a small (performance?) improvement by using an already defined variable.
Added to documentation?