30 lines
522 B
Go
30 lines
522 B
Go
package sphero
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("SpheroDriver", func() {
|
|
var (
|
|
s *SpheroDriver
|
|
a *SpheroAdaptor
|
|
)
|
|
|
|
BeforeEach(func() {
|
|
a = NewSpheroAdaptor("bot", "/dev/null")
|
|
a.sp = sp{}
|
|
s = NewSpheroDriver(a, "bot")
|
|
})
|
|
|
|
It("Must be able to Start", func() {
|
|
Expect(s.Start()).To(Equal(true))
|
|
})
|
|
It("Must be able to Init", func() {
|
|
Expect(s.Init()).To(Equal(true))
|
|
})
|
|
It("Must be able to Halt", func() {
|
|
Expect(s.Halt()).To(Equal(true))
|
|
})
|
|
})
|