Describe("SayNewLine", func() { It("says a newline", func() { terminalUI.SayNewLine() Expect(outputBuffer).To(test_helpers.SayNewLine()) }) }) }) Describe("Input Methods", func() { Describe("Prompt", func() { It("Prompts the user for input", func() { answerChan := make(chan string) go func() { defer GinkgoRecover() answerChan <- terminalUI.Prompt("Nickname") close(answerChan) }() Eventually(outputBuffer).Should(test_helpers.Say("Nickname: ")) stdinWriter.Write([]byte("RockStar\n")) Eventually(answerChan).Should(Receive(Equal("RockStar"))) Eventually(answerChan).Should(BeClosed()) }) }) Describe("PromptWithDefault", func() { It("Prompts the user for input", func() { answerChan := make(chan string) go func() {