Skip to content

Commit

Permalink
Clean up files
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Dec 3, 2013
1 parent 2c9247d commit 8b66394
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 45 deletions.
1 change: 0 additions & 1 deletion gobot/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func driver() string {
return `package gobot{{ .Name }}
import (
"fmt"
"github.com/hybridgroup/gobot"
)
Expand Down
88 changes: 44 additions & 44 deletions robot_test.go
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
package gobot

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)

var _ = Describe("Robot", func() {

var (
someRobot Robot
)
var (
someRobot Robot
)

BeforeEach(func() {
someRobot = Robot{
Work: func() {
},
}
})
BeforeEach(func() {
someRobot = Robot{
Work: func() {
},
}
})

Context("when valid", func() {
It("initName should not change name when already set", func() {
someRobot.Name = "Bumblebee"
someRobot.initName()
Expect(someRobot.Name).To(Equal("Bumblebee"))
})
It("initName should set random name when not set", func() {
someRobot.initName()
Expect(someRobot.Name).NotTo(BeNil())
Expect(someRobot.Name).NotTo(Equal("Bumblebee"))
})
PIt("should Start", func() {
Expect(true)
})
PIt("should initConnections", func() {
Expect(true)
})
PIt("should initDevices", func() {
Expect(true)
})
PIt("should startConnections", func() {
Expect(true)
})
PIt("should startDevices", func() {
Expect(true)
})
PIt("should GetDevices", func() {
Expect(true)
})
PIt("should GetDevice", func() {
Expect(true)
})
})
Context("when valid", func() {
It("initName should not change name when already set", func() {
someRobot.Name = "Bumblebee"
someRobot.initName()
Expect(someRobot.Name).To(Equal("Bumblebee"))
})
It("initName should set random name when not set", func() {
someRobot.initName()
Expect(someRobot.Name).NotTo(BeNil())
Expect(someRobot.Name).NotTo(Equal("Bumblebee"))
})
PIt("should Start", func() {
Expect(true)
})
PIt("should initConnections", func() {
Expect(true)
})
PIt("should initDevices", func() {
Expect(true)
})
PIt("should startConnections", func() {
Expect(true)
})
PIt("should startDevices", func() {
Expect(true)
})
PIt("should GetDevices", func() {
Expect(true)
})
PIt("should GetDevice", func() {
Expect(true)
})
})
})

0 comments on commit 8b66394

Please sign in to comment.