# Navigate between a test and test subject

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/2026.3/llms.txt).

In RubyMine, you can quickly navigate between a test and the test subject.

Procedure: Jump from a test to its test subject

1. Open a test class in the editor.

2. From the main menu or the editor context menu, select `Navigate | Test Subject`. Alternatively, press `Ctrl+Shift+T` (Windows), `⌘ ⇧ T` (macOS), `⌘ ⇧ T` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ T` (macOS System Shortcuts), `Ctrl+Shift+T` (XWin), `Ctrl+Shift+T` (GNOME), `Ctrl+Shift+T` (KDE), `Ctrl+Shift+T` (Emacs), `Ctrl+Shift+T` (Sublime Text), `Ctrl+Shift+T` (Sublime Text (macOS)), `Ctrl+Shift+T` (Visual Studio), `Ctrl+Shift+T` (Visual Studio (macOS)), `Ctrl+Alt+T` (TextMate), `Ctrl+Shift+T` (NetBeans), `Ctrl+Shift+T` (Eclipse), `Ctrl+Shift+T` (Eclipse (macOS)).

The test subject for the current test class opens in the dedicated tab of the editor and gets the focus.

Procedure: Jump from a class or file to its test

1. Open class in the editor. If you want to navigate from a method to its test, place the caret at this method.

2. Go to `Navigate | Test`. Alternatively, press `Ctrl+Shift+T` (Windows), `⌘ ⇧ T` (macOS), `⌘ ⇧ T` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ T` (macOS System Shortcuts), `Ctrl+Shift+T` (XWin), `Ctrl+Shift+T` (GNOME), `Ctrl+Shift+T` (KDE), `Ctrl+Shift+T` (Emacs), `Ctrl+Shift+T` (Sublime Text), `Ctrl+Shift+T` (Sublime Text (macOS)), `Ctrl+Shift+T` (Visual Studio), `Ctrl+Shift+T` (Visual Studio (macOS)), `Ctrl+Alt+T` (TextMate), `Ctrl+Shift+T` (NetBeans), `Ctrl+Shift+T` (Eclipse), `Ctrl+Shift+T` (Eclipse (macOS)).

3. If more than one test is associated with the test subject, select the desired one from the list. The test for the current class opens in the dedicated tab of the editor and gets the focus.

> **Note:**
> If RubyMine doesn't open an existing test, make sure that the directory where your tests are stored is [marked as a Test Sources
> Root](create-tests.html#mark_test_sources_root).

> **Warning:**
> You cannot navigate between a test and its subject if you rename the test method.

