Sha256: b78b59715c11643848f33c26290ebb69a2be1ad001213d3783950097e69b5334
Contents?: true
Size: 454 Bytes
Versions: 4
Compression:
Stored size: 454 Bytes
Contents
require "test_helper" class TestQuestion < Minitest::Test def setup @input = StringIO.new @output = StringIO.new @highline = HighLine.new(@input, @output) @question = HighLine::Question.new("How are you?", nil) @asker = HighLine::QuestionAsker.new(@question, @highline) end def test_ask_once answer = "Very good, thanks for asking!" @input.string = answer assert_equal answer, @asker.ask_once end end
Version data entries
4 entries across 4 versions & 1 rubygems