diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index c44c8e057..432f56e8f 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -724,6 +724,13 @@ def test_build_completor IRB.conf[:COMPLETOR] = original_completor end + def test_ap_name + assert_equal 'irb', @context.ap_name + IRB.conf[:AP_NAME] = 'foo' + ap_name_modified_context = IRB::Context.new(nil, IRB::WorkSpace.new(Object.new), TestInputMethod.new) + assert_equal 'foo', ap_name_modified_context.ap_name + end + private def without_colorize