From f6d82f6c58b21241e28d1cac734f86322e36d3be Mon Sep 17 00:00:00 2001 From: Adham Helal Date: Tue, 27 Sep 2016 14:50:31 +0200 Subject: [PATCH] Fix the test context and it :| --- out_command_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/out_command_test.go b/out_command_test.go index ad21a80..0d93d6a 100644 --- a/out_command_test.go +++ b/out_command_test.go @@ -310,7 +310,7 @@ var _ = Describe("Out Command", func() { Ω(*release.Draft).Should(Equal(false)) }) - Context("creates a non-draft pre-release in Github", func() { + Context("when pre-release are set and release are not", func() { BeforeEach(func() { bodyPath := filepath.Join(sourcesDir, "body") file(bodyPath, "this is a great release") @@ -318,7 +318,7 @@ var _ = Describe("Out Command", func() { request.Source.PreRelease = true }) - It("creates a release on GitHub in draft mode", func() { + It("creates a non-draft pre-release in Github", func() { _, err := command.Run(sourcesDir, request) Ω(err).ShouldNot(HaveOccurred()) @@ -346,7 +346,7 @@ var _ = Describe("Out Command", func() { }) }) - Context("creates a final release in Github", func() { + Context("when release and pre-release are set", func() { BeforeEach(func() { bodyPath := filepath.Join(sourcesDir, "body") file(bodyPath, "this is a great release") @@ -354,7 +354,7 @@ var _ = Describe("Out Command", func() { request.Source.PreRelease = true }) - It("creates a release on GitHub in draft mode", func() { + It("creates a final release in Github", func() { _, err := command.Run(sourcesDir, request) Ω(err).ShouldNot(HaveOccurred())