Commit Graph

29 Commits

Author SHA1 Message Date
Ryan Fitzgerald 035d5c8203 Add Rails 5.2 and 6.0 to build, fixing up issues
In addition to adding scenarios for 5.2 and 6.0, I had to do some
cleanup to get everything working well:

* Replace string-based version checks with numeric ones, and update all
  version checks to treat 6+ the same as 5 (except where necessary).

* Avoid touching `ActiveSupport::Deprecation::DeprecationProxy`
  instances to fix a couple of warnings in Rails 6.

* Update Bundler as part of container setup, because Rails 6's config
  seems to rely on a newer version of Bundler than the one that comes
  with the Ruby image.

* Update the regexes in the `show-routes` spec to be compatible with 5.2
  and up.

* Add a new code path to `show-routes` for Rails 6.

* Upgrade all bundles, just for hygiene.
2018-12-29 15:58:08 -08:00
Ryan Fitzgerald 2b792b3175 Fix warnings in specs
Ruby isn't OK with this anymore.
2018-11-06 09:47:53 -08:00
Ryan Fitzgerald be97a215a4 Fix compatibility of specs with Mongoid and Rails 5.1
- Mongoid needs to be loaded before Rails initializes

 - Rails 5.1 changed the necessary requires to invoke `console`
2017-05-05 23:38:00 -07:00
Ryan Fitzgerald dd3e429824 Fix show-routes issues
The block passed to `reduce` needs to take two params, one for the
current set of filtered lines and one for the next pattern to filter on.
I also updated the test for double grepping to be stricter.
2017-03-25 17:12:22 -07:00
Ryan Fitzgerald 098f2f1541 Fix show-models spec for Rails 5.0 2017-03-25 16:56:18 -07:00
ar.shestopal 2d632cb749 Change show-routes command to allow multiple grep options 2017-03-21 11:11:59 +02:00
Ryan Fitzgerald 7ec8af567c Remove rr dependency
It was causing spurious failures that I didn't feel like tracking down.
2015-02-07 23:29:37 -08:00
Ryan Fitzgerald 5810196860 Make find-route spec compatible with pre-PATCH Rails 2015-02-07 23:28:24 -08:00
Ryan Fitzgerald 493b7f9160 Make treatment of Pry.color consistent 2015-02-07 23:27:45 -08:00
John Mair 6795e1a535 add specs for find-route command 2015-02-05 21:12:49 +01:00
Ryan Fitzgerald 595493ef9b Add spec for recognize-path behavior 2014-11-22 23:17:43 -08:00
Ryan Fitzgerald 17e1096155 Update Appraisals, remove Ruby 1.8 and 1.9.2 support 2014-11-22 23:10:58 -08:00
Ryan Fitzgerald 1f1d053090 Implement show-model command for displaying one model 2013-07-20 22:15:43 -07:00
Kyrylo Silin 1c9166a37d Implement `recoginze-path` command 2013-05-19 12:29:32 +03:00
Kyrylo Silin 10c0fd2650 ShowModelsSpec: fix failing test
For some strange reason it is showing wrong results because `Pry.color`
at the moment of the `show-models` command invocation is set to true.
2013-05-19 10:33:24 +03:00
Kyrylo Silin 6ef5963eba SpecHelper: get rid of the minitest warning
The warning is: "Warning: you should require 'minitest/autorun' instead"
2013-05-19 10:32:57 +03:00
Ryan Fitzgerald 16de581516 Update spec to match inverted output 2013-04-08 00:15:50 -07:00
☈king e5e145af31 Add Mongoid spec to regain coverage 2013-04-01 01:22:49 -05:00
☈king 34fda2ccaf Omit non-matching models from --grep output 2013-04-01 00:33:25 -05:00
☈king 0a8f16790c Tolerate difference in Mongoid output w/r/t _type 2013-03-31 22:55:21 -05:00
Ryan Fitzgerald f10e08acab Avoid warnings by not initializing the console more than once 2012-09-23 15:40:51 -07:00
Ryan Fitzgerald c3feb6f3d8 1.8 compatibility and Readme updates 2012-09-23 15:29:39 -07:00
Ryan Fitzgerald 16c0f2a459 Move and test show-middleware 2012-09-23 15:28:49 -07:00
Ryan Fitzgerald 2f6981216c Move and refactor show-routes 2012-09-23 15:28:49 -07:00
Ryan Fitzgerald f26477de96 Re-add color to both AR and Mongoid 2012-09-23 15:28:49 -07:00
Ryan Fitzgerald 02da9d5018 Refactor and test mongoid models (w/o color for now) 2012-09-23 15:28:49 -07:00
Ryan Fitzgerald 9208a850a1 Refactor AR show-model and test --grep 2012-09-23 15:28:49 -07:00
Ryan Fitzgerald 72694e070f Move and test show-models 2012-09-23 15:28:49 -07:00
Ryan Fitzgerald 08fe828203 Redo testing setup, including tests for railtie 2012-09-23 15:28:42 -07:00