Functional tests with controllers in modules has IDE bugs


  • Using RubyMine2.5 EAP 96.1146
  • Ubuntu 9.10
  • Rails 2.3.8 application

Functional tests for controllers run and show up correctly in the IDE but don't work correctly in the Rails project view when the controller is in a module/namespace.

When I have

+ functional
  + site_admin
    + MyControllerTest

The test:

require 'test_helper'

class SiteAdmin::MyControllerTest < ActionController::TestCase
  # Replace this with your real tests.
  test "the truth" do
    assert true

The tests run and pass, but in the IDE, the node "test_the_truth" is not clickable. Right-clicking only has the option "Show Statistics". If I change the controller to remove the "SiteAdmin::" then the IDE tree control works again.

I'm moving more towards RSpec for my functional tests but I still work on my legacy projects that aren't all ported forward.

-Mark E.

Comment actions Permalink

Hello Mark,

Looks like a bug, please file an bug report and assign it to me -

Comment actions Permalink

Thanks for looking at it and verifying it. I created a report that points back to this thread.

-Mark E.


Please sign in to leave a comment.