diff options
author | aycabta <aycabta@gmail.com> | 2021-09-04 05:40:15 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-04 17:48:26 +0900 |
commit | 9ac32e87bba3a6d873b92c587a83e78051a83839 (patch) | |
tree | cf1f2deaea1644c0e06c0898672632f6baa9df32 /test | |
parent | 6fa37d26666b1c7e009d661beb8c13fe39ce1b7f (diff) | |
download | ruby-9ac32e87bba3a6d873b92c587a83e78051a83839.tar.gz |
[ruby/irb] Add an assertion to check completion "var.method" to get correct "class.method"
https://github.com/ruby/irb/commit/cc1ddb37a9
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_completion.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index a661d68c59..1fd42999c6 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -88,6 +88,7 @@ module TestIRB str_example = '' assert_include(IRB::InputCompletor.retrieve_completion_data("str_examp", bind: binding), "str_example") assert_equal(IRB::InputCompletor.retrieve_completion_data("str_example", bind: binding, doc_namespace: true), "String") + assert_equal(IRB::InputCompletor.retrieve_completion_data("str_example.to_s", bind: binding, doc_namespace: true), "String.to_s") end def test_complete_class_method |