diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2016-12-14 01:57:35 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2017-07-06 00:17:16 +0300 |
commit | acce49b8c0653d9fb87408a04b2b19a0d76ac860 (patch) | |
tree | 1df0c057f02d79578110e416c4739c467f145788 | |
parent | 3743228846cda5cf3c90bda7ceb787ef71cfbaad (diff) | |
download | pry-acce49b8c0653d9fb87408a04b2b19a0d76ac860.tar.gz |
Remove duplicate tests
-rw-r--r-- | spec/completion_spec.rb | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/spec/completion_spec.rb b/spec/completion_spec.rb index 58a193c9..81996c07 100644 --- a/spec/completion_spec.rb +++ b/spec/completion_spec.rb @@ -138,59 +138,6 @@ describe Pry::InputCompleter do completer_test(b, pry).call('/Con') end - it 'should complete for stdlib symbols' do - - o = Object.new - # Regexp - completer_test(o).call('/foo/.extend') - - # Array - completer_test(o).call('[1].push') - - # Hash - completer_test(o).call('{"a" => "b"}.keys') - - # Proc - completer_test(o).call('{2}.call') - - # Symbol - completer_test(o).call(':symbol.to_s') - - # Absolute Constant - completer_test(o).call('::IndexError') - end - - it 'should complete for target symbols' do - o = Object.new - - # Constant - module Mod - remove_const :Con if defined? Con - Con = 'Constant' - module Mod2 - end - end - - completer_test(Mod).call('Con') - - # Constants or Class Methods - completer_test(o).call('Mod::Con') - - # Symbol - _foo = :symbol - completer_test(o).call(':symbol') - - # Variables - class << o - attr_accessor :foo - end - o.foo = 'bar' - completer_test(binding).call('o.foo') - - # trailing slash - expect(Pry::InputCompleter.new(Readline).call('Mod2/', :target => Pry.binding_for(Mod)).include?('Mod2/')).to eq(true) - end - it 'should complete for arbitrary scopes' do module Bar @barvar = :bar |