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

19 commits

Author SHA1 Message Date
Kyrylo Silin
f2ef3b6ed0 spec/commands/show_{doc,source}: refactor to be order independent
A bunch of tests were order-dependent and weren't cleaning up properly after
they're executed. This results in complications with #2055 where we want to
randomise our test suite.

With this change every test defines what it needs and then cleans up properly,
instead of relying on the global space and fixtures.

P.S. The specs are still quite messy but this change is a step in the right
direction.
2019-06-15 18:28:00 +03:00
Kyrylo Silin
18c45d26c5 rubocop: enable the Style/FrozenStringLiteralComment cop
This will greatly ease Pry support on Ruby 3.0 (when it's out).
2019-05-08 00:13:17 +03:00
Kyrylo Silin
1df89913ad rubocop: fix offences of the Style/RedundantParentheses cop 2019-03-02 13:31:20 +02:00
Kyrylo Silin
5fe81a32ff rubocop: fix offences of the Style/EmptyMethod cop 2019-03-01 01:34:50 +02:00
Kyrylo Silin
042a404a93 rubocop: fix offences of the Layout/LeadingCommentSpace cop 2019-02-25 00:53:32 +02:00
Kyrylo Silin
6ea62fef97 rubocop: fix offences of the Bundler/InsecureProtocolSource cop 2019-02-24 19:44:21 +02:00
Kyrylo Silin
383f97e341 rubocop: fix offences of the Layout/EmptyLineBetweenDefs cop 2018-10-14 14:40:48 +08:00
Kyrylo Silin
d8a293317c Add .gitkeep to spec/fixtures/cdpathdir/ in order to fix tests 2015-06-17 17:02:27 +03:00
Ryan Fitzgerald
3bcb2e02ff Add spec for 8cdcd9e40d 2015-01-14 22:07:32 -08:00
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
Kyrylo Silin
ce99ec425a Command::Hist: change the behaviour
Fix issue #205 (history option to show just history for current session)

Add `--all` switch. `hist` is `hist --all` now. `hist` without any
parameters shows the history of the current session.
2013-03-17 10:43:06 +02:00
Kyrylo Silin
175c0e950b ShowDocSpec: add a test concerning monkeypatching
Make sure that `show-doc` displays the comments of the original
definition by default. This test *must* fail with current state of
things. The goal is to eliminate the oddities in Pry across some Ruby
implementations.

For more information see:
d05233ecd3
2013-03-14 17:51:05 +02:00
John Mair
7c8f9be176 Show error when no docs found 2013-03-10 00:19:10 +01:00
Conrad Irwin
78caffbcbc Dedup .pryrc across symlinks too 2013-02-17 21:33:18 -08:00
John Mair
e1c1720226 oops, forgot to add spec/fixtures/whereami_helper.rb 2013-02-03 11:06:38 +01:00
Ryan Fitzgerald
cbf19cc7a4 Move all fixtures into fixtures/ 2012-12-09 11:42:41 -08: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
Conrad Irwin
71bd613f13 More spec fixtures around 2012-11-18 01:33:32 -08:00