-
Notifications
You must be signed in to change notification settings - Fork 38
#1160: fix undefined method 'zero?' in dimensions-of-terrain judge
#1162
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -274,8 +274,16 @@ def test_total_issues_and_pull_requests | |
| def test_total_commits | ||
| WebMock.disable_net_connect! | ||
| fb = Factbase.new | ||
| load_it('dimensions-of-terrain', fb, | ||
| Judges::Options.new({ 'repositories' => 'foo/foo,yegor256/empty-repo', 'testing' => true })) | ||
| load_it( | ||
| 'dimensions-of-terrain', | ||
| fb, | ||
| Judges::Options.new( | ||
| { | ||
| 'repositories' => 'foo/foo,yegor256/empty-repo,yegor256/nil-size-repo', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The repositories list now includes |
||
| 'testing' => true | ||
| } | ||
| ) | ||
| ) | ||
| f = fb.query("(eq what 'dimensions-of-terrain')").each.first | ||
| assert_equal(1484, f.total_commits) | ||
| end | ||
|
Yegorov marked this conversation as resolved.
|
||
|
|
||
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.
The single
Fbe.octo.repository(repo)call was split into a local variable to read:sizetwice — fine — but the new branch is not covered by a test. Without a stub returningsize: nilfor a repo passed totest_total_contributors, this guard is dead code from the suite's point of view, and therakecheck on the current head is failing.