summaryrefslogtreecommitdiff
path: root/test/acceptance/at_readline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/acceptance/at_readline.rb')
-rw-r--r--test/acceptance/at_readline.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/acceptance/at_readline.rb b/test/acceptance/at_readline.rb
index 8a66f09..5167394 100644
--- a/test/acceptance/at_readline.rb
+++ b/test/acceptance/at_readline.rb
@@ -1,6 +1,6 @@
# coding: utf-8
-require_relative 'acceptance_test'
+require_relative "acceptance_test"
HighLine::AcceptanceTest.check do |t|
t.desc =
@@ -22,12 +22,12 @@ HighLine::AcceptanceTest.check do |t|
"When ready, just type 'exit' and the loop will finish.\n\n" \
"Don't forget to answer 'y' (yes) or 'n' (no) to the question at the end."
- t.action = Proc.new do
+ t.action = proc do
loop do
cmd =
- ask "Enter command: ", %w{ save sample exec exit load } do |q|
- q.readline = true
- end
+ ask "Enter command: ", %w[save sample exec exit load] do |q|
+ q.readline = true
+ end
say("Executing \"#{cmd}\"...")
break if cmd == "exit"
end