A Sublime Text plugin that comes in handy when working with RSpec.
Often you will find yourself adding :focus
to test specific examples. This plugin makes it easy by allowing you to toggle :focus
on a specific line with a keyboard shortcut.
Use Package Control to install. You may need to restart Sublime Text!
The default keyboard shortcut is ctrl+shift+o
to focus/unfocus. To change this, you can edit your key bindings in Preferences > Key Bindings - User with
{
"keys": ["ctrl+shift+o"],
"command": "toggle_rspec_focus"
}