2014-04-27 18:02:39 -07:00
|
|
|
package joystick
|
2014-04-26 03:11:51 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
. "github.com/onsi/ginkgo"
|
|
|
|
. "github.com/onsi/gomega"
|
|
|
|
)
|
|
|
|
|
|
|
|
var _ = Describe("JoystickDriver", func() {
|
|
|
|
var (
|
2014-04-27 18:02:39 -07:00
|
|
|
d *JoystickDriver
|
2014-04-26 03:11:51 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
BeforeEach(func() {
|
2014-05-22 20:28:26 -07:00
|
|
|
d = NewJoystickDriver(NewJoystickAdaptor("bot"), "bot", "/dev/null")
|
2014-04-26 03:11:51 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
PIt("Must be able to Start", func() {
|
2014-04-27 18:02:39 -07:00
|
|
|
Expect(d.Start()).To(Equal(true))
|
2014-04-26 03:11:51 -07:00
|
|
|
})
|
|
|
|
PIt("Must be able to Init", func() {
|
2014-04-27 18:02:39 -07:00
|
|
|
Expect(d.Init()).To(Equal(true))
|
2014-04-26 03:11:51 -07:00
|
|
|
})
|
|
|
|
PIt("Must be able to Halt", func() {
|
2014-04-27 18:02:39 -07:00
|
|
|
Expect(d.Halt()).To(Equal(true))
|
2014-04-26 03:11:51 -07:00
|
|
|
})
|
|
|
|
})
|