From 6072e47b58a5426089f9018c132d5a01494a6ba1 Mon Sep 17 00:00:00 2001 From: Mauricio Banduk Date: Tue, 11 Oct 2016 11:06:40 -0300 Subject: [PATCH] Fix tests name --- app/history_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/history_test.go b/app/history_test.go index 65f9d89..d9e0d1d 100644 --- a/app/history_test.go +++ b/app/history_test.go @@ -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) @@ -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) @@ -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)