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.
请先登录再写评论。
Hello Mark,
Looks like a bug, please file an bug report and assign it to me - http://youtrack.jetbrains.net/issues/RUBY
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.
Hi Mark,
We've fixed it. Please try RubyMine 3.0 RC - see http://blogs.jetbrains.com/ruby/2010/11/rubymine-3-0-release-candidate-—-last-minute-little-fixes/.