blob: 0a94180a477c6b0d066c3f80c8fdb184d80a6573 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# coding: utf-8
require_relative "acceptance_test"
HighLine::AcceptanceTest.check do |t|
t.desc =
"This step checks if the readline works well with agree.\n" \
"You should press <tab> and readline should give the default " \
"(yes/no) options to autocomplete."
t.action = proc do
answer = agree("Do you agree?") { |q| q.readline = true }
puts "You've entered -> #{answer} <-"
end
t.question =
"Did HighLine#agree worked well using question.readline = true (y/n)? "
end
|