summaryrefslogtreecommitdiff
path: root/test/irb/test_input_method.rb
AgeCommit message (Collapse)Author
2022-11-03[ruby/irb] Provide a base test class and let tests restore encodingsStan Lo
conveniently (https://github.com/ruby/irb/pull/429) * Create a base TestIRB::TestCase class * Save/restore encodings for tests that initializes InputMethod classes Because `RelineInputMethod#initializes` calls `set_encoding`, which changes stdio/out/err and Encoding's default encoding values, we need to make sure any test that directly or indirectly (e.g. through Context) initializes `RelineInputMethod` restores encodings. `ReadlineInputMethod` also changes encodings but currently no tests cover it. * Remove unnecessary TestHelper module Since we now have a base TestCase, without_rdoc can just live there. https://github.com/ruby/irb/commit/c2874ec121
2022-10-26[ruby/irb] Rename test_helper.rb to helper.rbPeter Zhu
The name test_helper.rb conflicts with the test_helper.rb in JSON, causing build failures. This commit renames test_helper.rb to helper.rb. https://github.com/ruby/irb/commit/b6a92bf6b3 Co-Authored-By: Stan Lo <stan001212@gmail.com>
2022-10-26[ruby/irb] Don't insert new methods to Test::Unit::TestCasest0012
Ruby CI runs irb and other Ruby core/stdlib tests in the same process. So adding irb-specific helper to Test::Unit::TestCase could potentially pollute other components' tests and should be avoided.
2022-10-26[ruby/irb] Extract without_rdoc helperst0012
2022-10-25[ruby/irb] Make sure Encoding's defaults are restored Stan Lo
2022-10-24[ruby/irb] Restore standard input/output encodings after input method tests Stan Lo
2022-10-24[ruby/irb] Add a test case to cover rdoc unintalled scenario st0012
2022-10-24[ruby/irb] Add tests for RelineInputMethod st0012