Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the completion test for Ruby 1.8.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  • Loading branch information...
commit d53eb0921dd8bf8386ac9256a17d4f2e5e286b11 1 parent a36322a
@YorickPeterse YorickPeterse authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 test/test_completion.rb
View
9 test/test_completion.rb
@@ -27,10 +27,13 @@ def self.name; :symboly_name; end
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)
Please sign in to comment.
Something went wrong with that request. Please try again.