Skip to content

Conversation

@r7kamura
Copy link
Contributor

Summary

separator = tag(:br) * 2 #=> "<br /><br />"
separator.html_safe? #=> `nil` on Rails 5.2.3, but it would be nice if this returns `true`.

Copy link
Member

@kamipo kamipo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good to me. Can you add CHANGELOG entry?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert multiplied_safe_buffer.html_safe?
assert_predicate multiplied_safe_buffer, :html_safe?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert_not multiplied_unsafe_buffer.html_safe?
assert_not_predicate multiplied_unsafe_buffer, :html_safe?

@r7kamura r7kamura force-pushed the feature/safe-buffer-multiplication branch from 56ca511 to 9dd254c Compare April 18, 2019 21:33
@r7kamura
Copy link
Contributor Author

Thanks. I rewrote the test code and added an entry to CHANGELOG.

@kamipo kamipo merged commit 4acddae into rails:master Apr 18, 2019
@kamipo
Copy link
Member

kamipo commented Apr 18, 2019

Thanks!

@r7kamura r7kamura deleted the feature/safe-buffer-multiplication branch April 18, 2019 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants