-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused methods, correct nil -> IIEmptyIssue.
Test more IIEmptyIssueManagement methods.
- Loading branch information
Showing
10 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
...Integration-Core.package/IIEmptyIssueManagement.class/instance/checkResponse.shouldBe..st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ckage/IIEmptyIssueManagement.class/instance/createIssueWithTitle.body.assignee.labels..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
issue creation | ||
createIssueWithTitle: title body: body assignee: assignee labels: labels | ||
^ nil | ||
^ IIEmptyIssue new |
3 changes: 0 additions & 3 deletions
3
...tegration-Core.package/IIEmptyIssueManagement.class/instance/getIssuesForClass.isMeta..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...ssueIntegration-Tests.package/IIEmptyIssueManagementTest.class/instance/testCloseIssue.st
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...package/IIEmptyIssueManagementTest.class/instance/testMethodsWhoReturnEmptyCollections.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
running | ||
testMethodsWhoReturnEmptyCollections | ||
| methods arguments | | ||
methods := { #getIssues . #getIssuesForClass: . #getIssuesForMethod:class:isMeta: . #getMyIssuesForClass: . #getMyIssuesForMethod:class:isMeta: . #getLabels . #loadIssues . #loadLabels }. | ||
arguments := { 'arg1' . 'arg2' . 'arg3' }. | ||
methods do: [ :method | self assert: | ||
(self issueManagement perform: method withEnoughArguments: arguments) isEmpty ] |
14 changes: 14 additions & 0 deletions
14
...gration-Tests.package/IIEmptyIssueManagementTest.class/instance/testNoOperationMethods.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
running | ||
testNoOperationMethods | ||
| issue | | ||
issue := IIEmptyIssue new. | ||
self issueManagement | ||
closeIssue: issue; | ||
createIssueWithTitle: '' body: '' assignee: '' labels: {}; | ||
editIssue: issue assignee: ''; | ||
editIssue: issue body: ''; | ||
editIssue: issue labels: {}; | ||
editIssue: issue title: ''; | ||
editIssue: issue title: '' body: '' assignee: '' state: ''; | ||
openIssueInWebBrowser: issue. | ||
"If we reach here, all methods are implemented." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/IssueIntegration-Tests.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.