Skip to content

Commit 9f1bfde

Browse files
authored
add context.ap_name test (#1052)
1 parent 421c28f commit 9f1bfde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/irb/test_context.rb

+7
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,13 @@ def test_build_completor
724724
IRB.conf[:COMPLETOR] = original_completor
725725
end
726726

727+
def test_ap_name
728+
assert_equal 'irb', @context.ap_name
729+
IRB.conf[:AP_NAME] = 'foo'
730+
ap_name_modified_context = IRB::Context.new(nil, IRB::WorkSpace.new(Object.new), TestInputMethod.new)
731+
assert_equal 'foo', ap_name_modified_context.ap_name
732+
end
733+
727734
private
728735

729736
def without_colorize

0 commit comments

Comments
 (0)