pkg/types: misc current types testcase cleanups
This commit is contained in:
parent
5a984f0dee
commit
35153e7de8
@ -21,7 +21,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTypes010(t *testing.T) {
|
||||
func TestTypesCurrent(t *testing.T) {
|
||||
RegisterFailHandler(Fail)
|
||||
RunSpecs(t, "0.3.0 Types Suite")
|
||||
RunSpecs(t, "Current Types Suite")
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ func testResult() *current.Result {
|
||||
}
|
||||
}
|
||||
|
||||
var _ = Describe("Ensures compatibility with the 0.3.0 spec", func() {
|
||||
var _ = Describe("Current types operations", func() {
|
||||
It("correctly encodes a 0.3.0 Result", func() {
|
||||
res := testResult()
|
||||
|
||||
@ -150,7 +150,6 @@ var _ = Describe("Ensures compatibility with the 0.3.0 spec", func() {
|
||||
}`))
|
||||
})
|
||||
|
||||
var _ = Describe("Ensures compatibility with the 0.1.0 spec", func() {
|
||||
It("correctly encodes a 0.1.0 Result", func() {
|
||||
res, err := testResult().GetAsVersion("0.1.0")
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
@ -210,5 +209,4 @@ var _ = Describe("Ensures compatibility with the 0.3.0 spec", func() {
|
||||
}
|
||||
}`))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user