1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

22 commits

Author SHA1 Message Date
Ryan Fitzgerald
3bbe0f0c32 Remove support for 1.8-compatible versions of Ruby 2014-01-19 17:43:07 -08:00
Conrad Irwin
2c60f93b2d Merge branch 'wip.refactor'
Conflicts:
	lib/pry/completion.rb
	lib/pry/pry_instance.rb
	spec/commands/play_spec.rb
	spec/pry_defaults_spec.rb
2013-01-18 00:19:38 -08:00
John Mair
5e3a3f068b Thread.current -> Pry.current 2013-01-15 23:29:23 +01:00
Ryan Fitzgerald
351d8b6d61 Replace PryTester#simulate_repl with Pry#eval 2012-12-28 18:35:08 -08:00
Conrad Irwin
8a23c9a8a7 Use correct_indent not auto_indent...
Prior to this change, when auto_indent was set to true for some tests,
the green dots would be cleared half-way through.

We should probably re-consider these options, but it seems useful to
explicitly disable ANSI code rewriting during specs while leaving
indentation mutating read lines (before this change, there was a bug
in REPL that did not manifest because auto_indent was false).
2012-12-28 16:06:54 -08:00
Ryan Fitzgerald
1ea1927b43 Rename accept_line to eval 2012-12-27 22:06:50 -08:00
Conrad Irwin
3dfac682c1 Move initialization out of repl_prologue 2012-12-19 23:38:34 -08:00
Ryan Fitzgerald
d80e0494af Use accept_line in amend_line_spec instead of passing eval_string 2012-12-18 00:45:23 -08:00
Conrad Irwin
47ad5fd53f s/context=/push_binding 2012-12-17 23:58:02 -08:00
Conrad Irwin
edd3970917 Fix PryTester 2012-12-17 23:54:07 -08:00
Ryan Fitzgerald
2cfc4695f9 Rename target to current_binding, add push_binding method 2012-12-16 17:12:03 -08:00
Ryan Fitzgerald
9ad2ec95a1 Make target state downstream of r() 2012-12-16 16:55:07 -08:00
Ryan Fitzgerald
0a4c8195df Fix failures in command_integration_spec 2012-12-15 16:35:03 -08:00
Conrad Irwin
bb96695c8a Move history pushing before command execution
This separates out concerns a little better, and paves the way for
extracing process_command from retreive_line.
2012-12-10 10:42:05 -08:00
Ryan Fitzgerald
e0bebb831d Move version output into private test helper 2012-12-08 17:14:25 -08:00
Ryan Fitzgerald
038bdf8a91 Move some testing code into spec/helpers/ 2012-12-08 17:14:25 -08:00
Ryan Fitzgerald
f0c61ac418 Add Mocha for mocking 2012-12-08 17:02:37 -08:00
John Mair
e9e2bb0360 move mock_pry to local spec/helper.rb 2012-12-09 00:05:39 +01:00
John Mair
4bf42ca006 move Pad to local helpers, and move more methods in PryTestHelpers 2012-12-09 00:01:18 +01:00
John Mair
9a279461c1 PryTestHelpers methods are now module_functions, included into Bacon::Context by default 2012-12-07 23:08:49 +01:00
John Mair
31a9578228 cleaned up lib/pry/test/helper.rb
* removed most historicla junk from lib/pry/test/helper.rb
* relocated recalcitrant junk to the local spec/helper.rb (this isn't exposed to 3rd parties)
2012-12-07 21:41:05 +01:00
John Mair
d1489a59a3 moved test helper.rb to lib/pry/test/helper.rb, so plugins can use our test helpers 2012-11-28 02:05:30 +01:00