1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/test
John Mair 06991b221a added a Pry#run_command method
Useful when pry instance is passed to procs such as exception handlers
e.g Pry.config.exception_handler = proc |output, value, _pry_|
      _pry_.run_command('cat --ex')
    end

Notw that run_command also accepts a optional second parameter 'binding' that defaults to binding_stack.last when not given
2011-09-11 04:44:49 +12:00
..
test_default_commands cat --ex now shows code for exceptions raised in the REPL 2011-09-11 04:44:49 +12:00
helper.rb Default the redirect_pry_io helper's output to an anonymous StringIO. 2011-09-09 02:49:11 +03:00
test_command_helpers.rb added test_command_helpers.rb, fixed spelling error in comments in command_set.rb 2011-05-04 03:49:09 +12:00
test_command_processor.rb remove interpolation of command names and fix interpolation error messages 2011-08-18 01:23:39 +12:00
test_command_set.rb made it so commands (with :keep_retval => true) can now return nil as a legitimate return value. Created a new 'void' value to use instead when indicating no return value. also updated tests. 2011-09-04 13:30:20 +12:00
test_completion.rb updated tests for new _pry_ parameter being passed to before_session hook 2011-09-08 03:28:00 +12:00
test_default_commands.rb reorganized command tests into test_default_commands/ folder with separate test files for each command set 2011-06-03 03:26:49 +12:00
test_history_array.rb Removed duplicate implementation from tests 2011-05-15 12:24:52 +02:00
test_pry.rb added a Pry#run_command method 2011-09-11 04:44:49 +12:00
test_pry_history.rb fixed tempfile-related bug and failing test and got rid of Pry.view() around nest_level in DEFAULT_PROMPT 2011-09-08 14:18:37 +12:00
test_pry_output.rb Remove warning about pretty_inspect. 2011-08-27 10:53:22 -07:00
test_special_locals.rb merged in robgleeson's patch to pass pry instance to prompts, also added test_special_local.rb and test_shell.rb tests 2011-09-02 22:25:18 +12:00
testrc version 0.6.8, added whereami command, made .pryrc run at the start of each runtime session, put syntax highlighting on by default 2011-03-06 03:17:54 +13:00