Skip to content

Commit

Permalink
add context.ap_name test
Browse files Browse the repository at this point in the history
  • Loading branch information
QWYNG committed Dec 20, 2024
1 parent 49050f9 commit 307814a
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 307814a

Please sign in to comment.