-
Notifications
You must be signed in to change notification settings - Fork 0
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
Echo/fix omission with break token #1
Conversation
792fa4d
to
5716088
Compare
87d01ff
to
4bfcc63
Compare
e278c9b
to
ef78ec4
Compare
4bfcc63
to
14bf9ab
Compare
ef78ec4
to
e124272
Compare
14bf9ab
to
d7e6d3f
Compare
@@ -242,4 +242,20 @@ def truncate(html, opts = {}) | |||
to eq '<h1>hello <!-- stuff --> and <!-- la -->...</h1>' | |||
end | |||
end | |||
|
|||
context 'when truncating by break_token and using a omission' 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.
[Minor] a
-> an
omission, but I suggest 'when a custom break_token and omission options are used' for consistency with the rest of the file and also discard the first expectation. I think it has already been tested with various break_token
values above.
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.
Done!
Removed the first expect (indeed it was tested above) and fixed the test description.
Plus I fixed all rubocop warnings in the spec file according to yogurt rubucop.yml
LGTM |
When using break_token, omissions was not added in the truncated html. Fix based on hgmnz/truncate_html#57. Issue described here hgmnz/truncate_html#52
d7e6d3f
to
3aa6448
Compare
When using break_token, omissions were not added in the truncated html.
Based on this fix.
Issue described here