Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/irb/test_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down