Skip to content

Commit

Permalink
default pants are on
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedamat committed May 5, 2014
1 parent 5df600c commit 592e9fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion i3status/on_off.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func NewOnOffWidget() *OnOffWidget {
instanceCount++
w := OnOffWidget{
*NewBaseWidget(),
false,
true,
}
return &w
}
Expand Down
10 changes: 5 additions & 5 deletions test/on_off_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func TestOnOffWidget(t *testing.T) {
w.Start()
Convey("When an entry is sent", func() {
w.Input <- i3status.Entry{Name: "OnOff"}
Convey("widget status goes on", func() {
So(w.On, ShouldEqual, true)
Convey("widget status goes off", func() {
So(w.On, ShouldEqual, false)
})
})
})
Expand All @@ -43,11 +43,11 @@ func TestOnOffWidgetMessage(t *testing.T) {
w.Start()
Convey("When and entry is sent", func() {
msg := <-c
So(msg.FullText, ShouldEqual, "Pants Off")
So(msg.FullText, ShouldEqual, "Pants On")
w.Input <- i3status.Entry{Name: "OnOff"}
Convey("widget message is On", func() {
Convey("widget message is Off", func() {
msg = <-c
So(msg.FullText, ShouldEqual, "Pants On")
So(msg.FullText, ShouldEqual, "Pants Off")
})
})
})
Expand Down

0 comments on commit 592e9fb

Please sign in to comment.