Sha256: 42474c4d3b2c2d42c36be632d892ab1207df54fb4014015d21e42f0cdff6a69a
Contents?: true
Size: 637 Bytes
Versions: 83
Compression:
Stored size: 637 Bytes
Contents
require 'helper' describe Pry::InputCompleter do before do # The AMQP gem has some classes like this: # pry(main)> AMQP::Protocol::Test::ContentOk.name # => :content_ok module SymbolyName def self.name; :symboly_name; end end end after do Object.remove_const :SymbolyName end # another jruby hack :(( if !Pry::Helpers::BaseHelpers.jruby? it "should not crash if there's a Module that has a symbolic name." do completer = Pry::InputCompleter.build_completion_proc(Pry.binding_for(Object.new)) lambda{ completer.call "a.to_s." }.should.not.raise Exception end end end
Version data entries
83 entries across 83 versions & 1 rubygems