mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fixed the completion test for Ruby 1.8.
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
This commit is contained in:
parent
a36322a6bc
commit
d53eb0921d
1 changed files with 6 additions and 3 deletions
|
@ -27,10 +27,13 @@ describe Pry::InputCompleter do
|
|||
object = Object.new
|
||||
|
||||
object.instance_variable_set(:'@name', 'Pry')
|
||||
object.class.class_variable_set(:'@@number', 10)
|
||||
object.class.send(:class_variable_set, :'@@number', 10)
|
||||
|
||||
object.instance_variables.include?(:'@name').should == true
|
||||
object.class.class_variables.include?(:'@@number').should == true
|
||||
object.instance_variables.map { |v| v.to_sym } \
|
||||
.include?(:'@name').should == true
|
||||
|
||||
object.class.class_variables.map { |v| v.to_sym } \
|
||||
.include?(:'@@number').should == true
|
||||
|
||||
completer = Pry::InputCompleter.build_completion_proc(
|
||||
Pry.binding_for(object)
|
||||
|
|
Loading…
Add table
Reference in a new issue