1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-11-28 08:39:03 +02:00
This commit is contained in:
Andy Grunwald 2016-05-27 14:19:35 +02:00
parent 6eec2f6048
commit 0d2b98ade7
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ type Issue struct {
// Attachment represents a JIRA attachment
type Attachment struct {
Self string `json:"self,omitempty"`
Id string `json:"id,omitempty"`
ID string `json:"id,omitempty"`
Filename string `json:"filename,omitempty"`
Author *Assignee `json:"author,omitempty"`
Created string `json:"created,omitempty"`

View File

@ -167,7 +167,7 @@ func TestIssueDownloadAttachment(t *testing.T) {
t.Error("Expected attachment text", err)
}
if string(attachment) != testAttachment {
t.Errorf("Expecting an attachment", string(attachment))
t.Errorf("Expecting an attachment: %s", string(attachment))
}
if resp.StatusCode != 200 {