Skip to content

Commit

Permalink
Fix tests name
Browse files Browse the repository at this point in the history
  • Loading branch information
banduk committed Oct 11, 2016
1 parent 30ff414 commit 6072e47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func TestHistoryHandler(t *testing.T) {
}
})

g.It("It should return 200 if the user is authorized into the topic", func() {
g.It("Should retrieve 10 messages when limit is 10 and the history size is greater than this", func() {
a := GetDefaultTestApp()
testId := strings.Replace(uuid.NewV4().String(), "-", "", -1)
topic := fmt.Sprintf("chat/test_%s", testId)
Expand Down Expand Up @@ -214,7 +214,7 @@ func TestHistoryHandler(t *testing.T) {
})
})

g.It("It should return 200 if the user is authorized into the topic", func() {
g.It("Should retrieve all messages eve if limit is greater than the size of current history", func() {
a := GetDefaultTestApp()
testId := strings.Replace(uuid.NewV4().String(), "-", "", -1)
topic := fmt.Sprintf("chat/test_%s", testId)
Expand Down Expand Up @@ -262,7 +262,7 @@ func TestHistoryHandler(t *testing.T) {
}
})

g.It("It should return 200 if the user is authorized into the topic", func() {
g.It("Should retrieve 1 message from history when limit is 1 and theres more than 1 message", func() {
a := GetDefaultTestApp()
testId := strings.Replace(uuid.NewV4().String(), "-", "", -1)
topic := fmt.Sprintf("chat/test_%s", testId)
Expand Down

0 comments on commit 6072e47

Please sign in to comment.