mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
![]() * add Pry::Testable, and friends. This commit replaces lib/pry/test/helper.rb by using category modules. There's now: * Pry::Testable: * Pry::Testable::Evalable * Pry::Testable::Mockable * Pry::Testable::Utility * Pry::Testable::PryTester 'include Pry::Testable' includes all of the above. For the pry test suite it worked out best to include 'Pry::Testable' at the top-level. In plugins I've written though this hasn't been the case, and I only normally need: Pry::Testable::Evalable. So it reduces pollution for the third-party cases, which this code is intended for since it lives within lib/ of the project. What do you think? * breaking change: add set_testenv_variables and unset_testenv_variables * breaking change: add Pry::Testable::Variables, and rename constant_scope() to temporary_constants(). * breaking change: rename inject_var as insert_variable, and move its definition to Pry::Testable::Variables. * include Pry::Testable::Evalable & include Pry::Testable::Variables into the top-level, but keep the other two modules spec-local. * document third argument of insert_variable. * update CHANGELOG.md * note changelog entry is a breaking change * update documentation |
||
---|---|---|
.. | ||
commands | ||
config | ||
fixtures | ||
helpers | ||
method | ||
regression | ||
spec_helpers | ||
cli_spec.rb | ||
code_object_spec.rb | ||
code_spec.rb | ||
color_printer_spec.rb | ||
command_helpers_spec.rb | ||
command_integration_spec.rb | ||
command_set_spec.rb | ||
command_spec.rb | ||
completion_spec.rb | ||
config_spec.rb | ||
control_d_handler_spec.rb | ||
documentation_helper_spec.rb | ||
editor_spec.rb | ||
exception_whitelist_spec.rb | ||
helper.rb | ||
history_array_spec.rb | ||
history_spec.rb | ||
hooks_spec.rb | ||
indent_spec.rb | ||
method_spec.rb | ||
pager_spec.rb | ||
prompt_spec.rb | ||
pry_defaults_spec.rb | ||
pry_output_spec.rb | ||
pry_repl_spec.rb | ||
pry_spec.rb | ||
pryrc_spec.rb | ||
run_command_spec.rb | ||
sticky_locals_spec.rb | ||
syntax_checking_spec.rb | ||
wrapped_module_spec.rb |