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("JoystickAdaptor", func() {
|
|
|
|
var (
|
2014-04-27 18:02:39 -07:00
|
|
|
j *JoystickAdaptor
|
2014-04-26 03:11:51 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
BeforeEach(func() {
|
2014-05-22 20:28:26 -07:00
|
|
|
j = NewJoystickAdaptor("bot")
|
2014-04-26 03:11:51 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
PIt("Must be able to Finalize", func() {
|
2014-04-27 18:02:39 -07:00
|
|
|
Expect(j.Finalize()).To(Equal(true))
|
2014-04-26 03:11:51 -07:00
|
|
|
})
|
|
|
|
PIt("Must be able to Connect", func() {
|
2014-04-27 18:02:39 -07:00
|
|
|
Expect(j.Connect()).To(Equal(true))
|
2014-04-26 03:11:51 -07:00
|
|
|
})
|
|
|
|
})
|