mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-08 19:29:16 +08:00
Clean up files
This commit is contained in:
parent
2c9247dcc7
commit
8b6639485c
@ -95,7 +95,6 @@ func driver() string {
|
|||||||
return `package gobot{{ .Name }}
|
return `package gobot{{ .Name }}
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"github.com/hybridgroup/gobot"
|
"github.com/hybridgroup/gobot"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,54 +1,54 @@
|
|||||||
package gobot
|
package gobot
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = Describe("Robot", func() {
|
var _ = Describe("Robot", func() {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
someRobot Robot
|
someRobot Robot
|
||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
someRobot = Robot{
|
someRobot = Robot{
|
||||||
Work: func() {
|
Work: func() {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
Context("when valid", func() {
|
Context("when valid", func() {
|
||||||
It("initName should not change name when already set", func() {
|
It("initName should not change name when already set", func() {
|
||||||
someRobot.Name = "Bumblebee"
|
someRobot.Name = "Bumblebee"
|
||||||
someRobot.initName()
|
someRobot.initName()
|
||||||
Expect(someRobot.Name).To(Equal("Bumblebee"))
|
Expect(someRobot.Name).To(Equal("Bumblebee"))
|
||||||
})
|
})
|
||||||
It("initName should set random name when not set", func() {
|
It("initName should set random name when not set", func() {
|
||||||
someRobot.initName()
|
someRobot.initName()
|
||||||
Expect(someRobot.Name).NotTo(BeNil())
|
Expect(someRobot.Name).NotTo(BeNil())
|
||||||
Expect(someRobot.Name).NotTo(Equal("Bumblebee"))
|
Expect(someRobot.Name).NotTo(Equal("Bumblebee"))
|
||||||
})
|
})
|
||||||
PIt("should Start", func() {
|
PIt("should Start", func() {
|
||||||
Expect(true)
|
Expect(true)
|
||||||
})
|
})
|
||||||
PIt("should initConnections", func() {
|
PIt("should initConnections", func() {
|
||||||
Expect(true)
|
Expect(true)
|
||||||
})
|
})
|
||||||
PIt("should initDevices", func() {
|
PIt("should initDevices", func() {
|
||||||
Expect(true)
|
Expect(true)
|
||||||
})
|
})
|
||||||
PIt("should startConnections", func() {
|
PIt("should startConnections", func() {
|
||||||
Expect(true)
|
Expect(true)
|
||||||
})
|
})
|
||||||
PIt("should startDevices", func() {
|
PIt("should startDevices", func() {
|
||||||
Expect(true)
|
Expect(true)
|
||||||
})
|
})
|
||||||
PIt("should GetDevices", func() {
|
PIt("should GetDevices", func() {
|
||||||
Expect(true)
|
Expect(true)
|
||||||
})
|
})
|
||||||
PIt("should GetDevice", func() {
|
PIt("should GetDevice", func() {
|
||||||
Expect(true)
|
Expect(true)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user