Commit Graph

8 Commits

Author SHA1 Message Date
Kyrylo Silin 62ebc08d52 spec/code_spec.rb: add more tests for $LOAD_PATH behaviour 2013-11-23 22:13:54 +02:00
Kyrylo Silin fc2993a5ca spec/code_spec.rb: refactor tests
- Use fixtures as a test files
- Write more concise spec titles
2013-11-23 22:08:53 +02:00
Shannon Skipper ea1faa535d Add cat support for Ruby files with .rb ext omitted.
Add support for %cat with .rb ext omitted.

Allow highlighting ommitted '.rb' ext, DRY up ext checking.

Only call Pry::Code#from_file once on instantiation.
2013-11-18 15:15:28 -08:00
Shannon Skipper abfda989be Also files relative to load path dirs.
Oops, fix typo in comments.

Switch to  backticks instead of plusses.

Set and unset  in a context.

Remove unnecessary #basename.

Remove early File#basename so relative paths actually work.
2013-11-13 21:54:10 -08:00
Shannon Skipper 46c5e800ce Support %cat checking $LOAD_PATH directories. 2013-11-11 22:54:31 -08: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
☈king 848b6bdbeb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00