Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Restore missing assertion in issue title truncation test #158

Merged
merged 2 commits into from May 25, 2017

Conversation

jasonrudolph
Copy link
Contributor

Description of the Change

#76 added the logic to truncate issue titles to 100 characters, and it added a test to verify that logic. That test included an assertion to verify the truncated issue title.

#114 updated a handful of existing tests and happened to remove the assertion that verified truncation of the issue title.

Because that assertion was removed, it's currently possible to delete the code that truncates the issue title, and the issue title truncation test will still pass. 馃槵

This pull request updates the test to once again verify issue title truncation.

@joshaber: I suspect this particular removal in #114 was unintentional. Can you confirm that theory? (I realize that the PR shipped more than a year ago, so if you don't recall, I completely understand. 馃槆)

Alternate Designs

None

Benefits

Improve test coverage and reduce opportunity for regressions related to issue title generation

Possible Drawbacks

None that I'm aware of

Applicable Issues

/cc #76 #114

Prior to #114, this test asserted that the issue title gets truncation,
but that assertion was removed in #114. Since the essence of this test
involves the truncation of the issue title, it seems appropriate to
assert that the issue title gets correctly truncation.
Copy link
Contributor

@joshaber joshaber left a comment

Choose a reason for hiding this comment

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

Gosh, yeah, I don't recall now but seems likely it was accidental 馃憤

@jasonrudolph jasonrudolph merged commit 2a51a15 into master May 25, 2017
@jasonrudolph jasonrudolph deleted the jr-restore-missing-assertion branch May 25, 2017 21:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants