Before multi-project support tests for components would not run without problems in RubyMine. Multi-project support fixes this and you no longer have to open one RubyMine window for every component you are working on.

How to use multi-projects in RubyMine 6

It is pretty simple to enable multi-project support in your project:

Open your application

Open your gem/engine as a project and select “Open in current window” and check “Add to currently opened projects”

If you are running RubyMine < 6.0.2 right click on your gem/engine folder to get the popup menu. Select "Mark as" -> “Test source”. This sets your gems and engines up to run their tests properly. 6.0.2 has fixed the issue.

Repeat steps 2 and 3 for all your gems and engines

Run all the tests from all your components from one RubyMine window.

Fixing searches

RubyMine adds your engines and gems as libraries. As such they will not be searched in fuzzy searches. To fix this check the box “Include non-project files” at the top of the search box. When using shortcuts you can quickly check that box by repeating the shortcut with which you opened the box. In my case that is command + shift + o.

Summary

RubyMine is a great editor for Ruby and Rails projects. RubyMine 6 makes a huge step in supporting component-based Ruby and Rails applications properly.