2014-05-03 06:22:05 +08:00
|
|
|
package pebble
|
|
|
|
|
|
|
|
import (
|
2014-05-24 06:09:18 +08:00
|
|
|
. "github.com/onsi/ginkgo"
|
|
|
|
. "github.com/onsi/gomega"
|
2014-05-03 06:22:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
var _ = Describe("PebbleAdaptor", func() {
|
2014-05-24 06:09:18 +08:00
|
|
|
var (
|
|
|
|
adaptor *PebbleAdaptor
|
|
|
|
)
|
2014-05-03 06:22:05 +08:00
|
|
|
|
2014-05-24 06:09:18 +08:00
|
|
|
BeforeEach(func() {
|
|
|
|
adaptor = NewPebbleAdaptor("pebble")
|
|
|
|
})
|
2014-05-03 06:22:05 +08:00
|
|
|
|
2014-05-24 06:09:18 +08:00
|
|
|
It("Must be able to Finalize", func() {
|
|
|
|
Expect(adaptor.Finalize()).To(Equal(true))
|
|
|
|
})
|
|
|
|
It("Must be able to Connect", func() {
|
|
|
|
Expect(adaptor.Connect()).To(Equal(true))
|
|
|
|
})
|
|
|
|
It("Must be able to Disconnect", func() {
|
|
|
|
Expect(adaptor.Disconnect()).To(Equal(true))
|
|
|
|
})
|
|
|
|
It("Must be able to Reconnect", func() {
|
|
|
|
Expect(adaptor.Reconnect()).To(Equal(true))
|
|
|
|
})
|
2014-05-03 06:22:05 +08:00
|
|
|
})
|