summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-12-20 17:07:24 +0900
committeraycabta <aycabta@gmail.com>2020-12-20 17:07:24 +0900
commit59b84fbf2ef38f1f7c93c526bdb64e382f3dd635 (patch)
tree79842e3edd91c1b9003fd67b559fcb70c3f59255 /test/irb
parent216a087e9351132b83110e0f7aad81d796371bdd (diff)
Set :DEFAULT to PROMPT_MODE for CI
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_cmd.rb28
1 files changed, 8 insertions, 20 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb
index 81d9b72..029dcbe 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -158,12 +158,9 @@ module TestIRB
PROMPT_S: '> ',
PROMPT_C: '> ',
PROMPT_N: '> '
- },
- PROMPT_I: '> ',
- PROMPT_S: '> ',
- PROMPT_C: '> ',
- PROMPT_N: '> '
+ }
}
+ IRB.conf[:PROMPT_MODE] = :DEFAULT
IRB.conf[:MEASURE] = false
input = TestInputMethod.new([
"3\n",
@@ -189,12 +186,9 @@ module TestIRB
PROMPT_S: '> ',
PROMPT_C: '> ',
PROMPT_N: '> '
- },
- PROMPT_I: '> ',
- PROMPT_S: '> ',
- PROMPT_C: '> ',
- PROMPT_N: '> '
+ }
}
+ IRB.conf[:PROMPT_MODE] = :DEFAULT
IRB.conf[:MEASURE] = true
input = TestInputMethod.new([
"3\n",
@@ -218,12 +212,9 @@ module TestIRB
PROMPT_S: '> ',
PROMPT_C: '> ',
PROMPT_N: '> '
- },
- PROMPT_I: '> ',
- PROMPT_S: '> ',
- PROMPT_C: '> ',
- PROMPT_N: '> '
+ }
}
+ IRB.conf[:PROMPT_MODE] = :DEFAULT
IRB.conf[:MEASURE] = true
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |line, line_no, &block|
time = Time.now
@@ -254,12 +245,9 @@ module TestIRB
PROMPT_S: '> ',
PROMPT_C: '> ',
PROMPT_N: '> '
- },
- PROMPT_I: '> ',
- PROMPT_S: '> ',
- PROMPT_C: '> ',
- PROMPT_N: '> '
+ }
}
+ IRB.conf[:PROMPT_MODE] = :DEFAULT
IRB.conf[:MEASURE] = false
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |line, line_no, &block|
time = Time.now