1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/spec
Kyrylo Silin ad5bb4c399 Assign default value to :listing option
When you create a class command, there is a problem with `:listing`
option, which doesn't carry the correct default value. Consider the
example:

  class MakeMeHappy < Pry::ClassCommand
    match 'woot'
  end

`MakeMeHappy` command matches against 'woot' String, but its `:listing`
option is set to the "nil" String, which is incorrect. We can fix it by
setting `:listing` explicitly:

  command_options :listing => 'woot'

It's a repetitive task, so we can automate it. Holy smoke, this why we
all use computers, after all!

With help of this commit there is no need to set `:listing` manually.
Pry will handle it for you.

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2013-01-04 04:56:54 +02:00
..
commands be brave, fully remove the 'edit-method' command 2013-01-01 01:25:43 +01:00
fixtures Move all fixtures into fixtures/ 2012-12-09 11:42:41 -08:00
helpers Move some testing code into spec/helpers/ 2012-12-08 17:14:25 -08:00
cli_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
code_object_spec.rb module_candidate.rb improved class lookup regex 2012-12-27 23:02:53 +01:00
code_spec.rb PryTestHelpers methods are now module_functions, included into Bacon::Context by default 2012-12-07 23:08:49 +01:00
command_helpers_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
command_integration_spec.rb Work around rbx bug by not trying to ls a fixnum 2012-12-27 14:41:25 -08:00
command_set_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
command_spec.rb Assign default value to :listing option 2013-01-04 04:56:54 +02:00
completion_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
control_d_handler_spec.rb Fix ^D press in nested REPLs 2012-12-15 03:23:24 +02:00
exception_whitelist_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
helper.rb Move all fixtures into fixtures/ 2012-12-09 11:42:41 -08:00
history_array_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
hooks_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
indent_spec.rb Indent 'while/until do' loops correctly [Fixes #787] 2012-12-28 07:37:55 -08:00
input_stack_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
method_spec.rb Pry::Method.from_str() can no longer raise an exception 2012-12-22 22:59:03 +01:00
prompt_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
pry_defaults_spec.rb cleaned up lib/pry/test/helper.rb 2012-12-07 21:41:05 +01:00
pry_history_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
pry_output_spec.rb move Pad to local helpers, and move more methods in PryTestHelpers 2012-12-09 00:01:18 +01:00
pry_spec.rb Make pryrc load errors more useful. 2013-01-01 03:40:36 -06:00
sticky_locals_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
syntax_checking_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
wrapped_module_spec.rb alliteration 2012-12-27 23:20:41 +01:00