Functional tests with controllers in modules has IDE bugs

Background

  • 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

Test::Unit
+ 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
  end
end


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.

Thanks,
-Mark E.

3 comments

Hello Mark,

Looks like a bug, please file an bug report and assign it to me - http://youtrack.jetbrains.net/issues/RUBY

0

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

http://youtrack.jetbrains.net/issue/RUBY-6816?projectKey=RUBY

Thanks,
-Mark E.

0

Please sign in to leave a comment.