diff --git a/Gemfile b/Gemfile index 2d0066e..8770271 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ source 'https://rubygems.org' # Specify your gem's dependencies in repl_type_completor.gemspec gemspec +gem 'irb', '>= 1.10.0' gem 'rake', '~> 13.0' gem 'test-unit' gem 'test-unit-ruby-core' diff --git a/test/repl_type_completor/test_require_paths.rb b/test/repl_type_completor/test_require_paths.rb index 331c75a..8d2f248 100644 --- a/test/repl_type_completor/test_require_paths.rb +++ b/test/repl_type_completor/test_require_paths.rb @@ -9,6 +9,7 @@ def test_require_paths assert_include ReplTypeCompletor::RequirePaths.require_completions('repl_type_com'), 'repl_type_completor' assert_include ReplTypeCompletor::RequirePaths.require_completions('repl_type_com'), 'repl_type_completor/version' assert_equal ['repl_type_completor/version'], ReplTypeCompletor::RequirePaths.require_completions('repl_type_completor/vers') + assert_equal 1, ReplTypeCompletor::RequirePaths.require_completions('ir').tally['irb'] end def test_require_relative_paths