Skip to content

Latest commit

 

History

History
executable file
·
22 lines (10 loc) · 1003 Bytes

README.md

File metadata and controls

executable file
·
22 lines (10 loc) · 1003 Bytes

Toggle Rails Test File

Simple plugin and key binding [Cmd+.] to toggle between a Rails model / lib file or controller file and its related unit or functional test.

If there is a matching test method or model method for the method where the cursor is, it will do its best to also toggle and move the cursor to that method when it switches files.

Run Rails Test File

This is specific to the repeating minitest runner setup.

Run your current test suite [Cmd+Shift+] or [Cmd+k, Cmd+t, Cmd+a], or the current test where the cursor is [Cmd+] or [Cmd+k, Cmd+t, Cmd+t].

If you are on a model and there is a matching test file, it will open and run the test file.

Each test suite or specific test name will map to its own tab in iTerm, so that one there is a matching tab, every time you run the test, it will find and run the test in the same tab.

Installation

Sorry, I'm not pushing these through PackageControl so just clone to your Library/Application Support/Sublime/Packages folder.