get rid of fixture
This commit is contained in:
parent
1b37681a6f
commit
83ec49582b
2 changed files with 1 additions and 4 deletions
|
|
@ -693,9 +693,7 @@ func TestIssueClose(t *testing.T) {
|
|||
} } }
|
||||
`))
|
||||
|
||||
jsonFile, _ := os.Open("../test/fixtures/issueClose.json")
|
||||
defer jsonFile.Close()
|
||||
http.StubResponse(200, jsonFile)
|
||||
http.StubResponse(200, bytes.NewBufferString(`{"id": "THE-ID"}`))
|
||||
|
||||
output, err := RunCommand(issueCloseCmd, "issue close 13")
|
||||
if err != nil {
|
||||
|
|
|
|||
1
test/fixtures/issueClose.json
vendored
1
test/fixtures/issueClose.json
vendored
|
|
@ -1 +0,0 @@
|
|||
{ "id": "hi" }
|
||||
Loading…
Add table
Add a link
Reference in a new issue