Fix test for new tests

This commit is contained in:
Adham Helal
2016-09-21 12:32:53 +02:00
parent ee96e0d46b
commit 5c3e29a416
2 changed files with 4 additions and 1 deletions

View File

@@ -277,7 +277,7 @@ var _ = Describe("Check Command", func() {
response, err := command.Run(resource.CheckRequest{
Version: resource.Version{},
Source: resource.Source{Drafts: true},
Source: resource.Source{Drafts: true, PreRelease: false},
})
Ω(err).ShouldNot(HaveOccurred())

View File

@@ -17,6 +17,7 @@ func newRepositoryRelease(id int, version string) *github.RepositoryRelease {
return &github.RepositoryRelease{
TagName: github.String(version),
Draft: github.Bool(false),
Prerelease: github.Bool(false),
ID: github.Int(id),
}
}
@@ -25,6 +26,7 @@ func newDraftRepositoryRelease(id int, version string) *github.RepositoryRelease
return &github.RepositoryRelease{
TagName: github.String(version),
Draft: github.Bool(true),
Prerelease: github.Bool(false),
ID: github.Int(id),
}
}
@@ -32,6 +34,7 @@ func newDraftRepositoryRelease(id int, version string) *github.RepositoryRelease
func newDraftWithNilTagRepositoryRelease(id int) *github.RepositoryRelease {
return &github.RepositoryRelease{
Draft: github.Bool(true),
Prerelease: github.Bool(false),
ID: github.Int(id),
}
}