summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-12-20 16:48:47 +0900
committeraycabta <aycabta@gmail.com>2020-12-20 16:48:47 +0900
commit216a087e9351132b83110e0f7aad81d796371bdd (patch)
treea195f8b3412a36e34e8d78001d14886586d1adb2 /test/irb
parent24fcbc92b44d44bccf28d9375201162e627bb4ec (diff)
Suppress errors related to using variables that are not directly related to testing
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_cmd.rb24
1 files changed, 20 insertions, 4 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb
index 6ecb5f3..81d9b72 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -158,7 +158,11 @@ module TestIRB
PROMPT_S: '> ',
PROMPT_C: '> ',
PROMPT_N: '> '
- }
+ },
+ PROMPT_I: '> ',
+ PROMPT_S: '> ',
+ PROMPT_C: '> ',
+ PROMPT_N: '> '
}
IRB.conf[:MEASURE] = false
input = TestInputMethod.new([
@@ -185,7 +189,11 @@ module TestIRB
PROMPT_S: '> ',
PROMPT_C: '> ',
PROMPT_N: '> '
- }
+ },
+ PROMPT_I: '> ',
+ PROMPT_S: '> ',
+ PROMPT_C: '> ',
+ PROMPT_N: '> '
}
IRB.conf[:MEASURE] = true
input = TestInputMethod.new([
@@ -210,7 +218,11 @@ module TestIRB
PROMPT_S: '> ',
PROMPT_C: '> ',
PROMPT_N: '> '
- }
+ },
+ PROMPT_I: '> ',
+ PROMPT_S: '> ',
+ PROMPT_C: '> ',
+ PROMPT_N: '> '
}
IRB.conf[:MEASURE] = true
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |line, line_no, &block|
@@ -242,7 +254,11 @@ module TestIRB
PROMPT_S: '> ',
PROMPT_C: '> ',
PROMPT_N: '> '
- }
+ },
+ PROMPT_I: '> ',
+ PROMPT_S: '> ',
+ PROMPT_C: '> ',
+ PROMPT_N: '> '
}
IRB.conf[:MEASURE] = false
IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |line, line_no, &block|