pry--pry/lib/pry/helpers
Kyrylo Silin 73820fa08a Ensure nil doesn't freak out `#find_command`
When you pass `nil` to `BaseHelpers#find_command` and a command in `set`
doesn't have the `:listing` option (for example, when your command is a
regular Ruby class), `#find_command` will return that command (even if
it doesn't match at all).

  command.options[:listing] #=> nil
  name = nil
  command.options[:listing] == name #=> true

Add tests to "code_object_spec.rb", because that's how I found this
shortage and it seems to be a natural test.

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2012-12-27 13:29:27 +02:00
..
base_helpers.rb Ensure nil doesn't freak out `#find_command` 2012-12-27 13:29:27 +02:00
command_helpers.rb force precedence of modules over methods when using C::X syntax 2012-11-15 01:33:54 +01:00
documentation_helpers.rb Highlight code in comments as ruby regardless 2012-07-09 15:20:29 -07:00
options_helpers.rb Fix the superficial slop errors 2012-05-29 20:33:52 -07:00
text.rb Add missing brackets to function definitions 2012-11-29 09:51:10 -08:00