https://github.com/pry/pry-fix
Commands for fixing failing tests within Pry.
https://github.com/pry/pry-fix
Last synced: 8 months ago
JSON representation
Commands for fixing failing tests within Pry.
- Host: GitHub
- URL: https://github.com/pry/pry-fix
- Owner: pry
- Created: 2014-04-25T18:16:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-03T08:11:42.000Z (over 11 years ago)
- Last Synced: 2025-05-08T01:42:58.867Z (8 months ago)
- Language: Ruby
- Size: 188 KB
- Stars: 8
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Pry fixit adds some commands to help fix up your code when using pry for TDD.
## define-it
If you've just got a `NameError` bceause you are missing a class, then `define-it` will create
a new class definition in the correct file (based on the class name).
If you've just got a `NoMethodError` because you are missing a method, then `define-it` will create
a stub of that method and open your text editor within it so you can implement it.
## replace-it
Replace it replaces the current `binding.pry` line with the previous line you
just typed into Pry.