This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There's a menu item for Naviate > Go to rails action/view. There should also be one for Navigate > Go to test/implementation that should switch between the functional/unit test and the rails model/controller/view. I miss that quite a bit from RadRails.
Reassigning this issue to newly created 'ruby' component.
This feature is there (and has been for a while) but it's a bit hidden. If you look in your editor context menu, in the Go To menu there should be a "Test" item. It's bound to Ctrl-Shift-E (perhaps something else on Windows, listed there in the menu). It should work as you expect; it jumps between tests and implementation files, and should be pretty flexible. It knows about Test::Unit conventions, Rails conventions, RSpec conventions, ZenTest conventions, and finally, if all those fail, it will use its code index to locate tests in arbitrary file (by appending and prepending "Test" to the class name and vice versa when going from test to tested class). The problem is that it doesn't appear in the main Navigate menu. The reason for this is that in the Big IDE (e.g. NetBeans with all the feature plugins installed), there is already a "Test" action in the Navigate menu: the one added by the Java/JUnit support. I couldn't add another Test action there or there would be two test actions. The proper fix here is to fix the infrastructure such that there is a single Go To Test action, which will delegate to the right Go To Test implementation for the current project type. We recently did that for the "Go To Type" action, which is now shared for Java, Ruby (and soon C++). A quick fix I can do in the short term is to add "Test" to the navigate menu in the Ruby-only IDE. But for now your workaround is to use the context menu (and probably the keyboard shortcut). There's a few more details on the testing support stuff here: http://wiki.netbeans.org/wiki/view/RubyTesting
I've submitted a patch to properly fix this as issue 110064
This is fixed now. IDE:------------------------------------------------- IDE: [10/11/07 10:58 AM] Committing started cvs server: scheduling file `org.netbeans.spi.gototest.TestLocator' for addition cvs server: use 'cvs commit' to add this file permanently Checking in projects/src/org/netbeans/modules/ruby/rubyproject/GotoTest.java; /cvs/ruby/projects/src/org/netbeans/modules/ruby/rubyproject/GotoTest.java,v <-- GotoTest.java new revision: 1.12; previous revision: 1.11 done Checking in projects/src/org/netbeans/modules/ruby/rubyproject/Bundle.properties; /cvs/ruby/projects/src/org/netbeans/modules/ruby/rubyproject/Bundle.properties,v <-- Bundle.properties new revision: 1.16; previous revision: 1.15 done Checking in railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsActionProvider.java; /cvs/ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsActionProvider.java,v <-- RailsActionProvider.java new revision: 1.18; previous revision: 1.17 done Checking in railsprojects/src/org/netbeans/modules/ruby/railsprojects/Generator.java; /cvs/ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/Generator.java,v <-- Generator.java new revision: 1.4; previous revision: 1.3 done Checking in projects/nbproject/project.xml; /cvs/ruby/projects/nbproject/project.xml,v <-- project.xml new revision: 1.9; previous revision: 1.8 done Checking in projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/GotoTestTest.java; /cvs/ruby/projects/test/unit/src/org/netbeans/modules/ruby/rubyproject/GotoTestTest.java,v <-- GotoTestTest.java new revision: 1.7; previous revision: 1.6 done Checking in rhtml/src/org/netbeans/modules/ruby/rhtml/resources/DefaultKeyBindings.xml; /cvs/ruby/rhtml/src/org/netbeans/modules/ruby/rhtml/resources/DefaultKeyBindings.xml,v <-- DefaultKeyBindings.xml new revision: 1.6; previous revision: 1.5 done Checking in editing/src/org/netbeans/modules/ruby/DefaultKeyBindings.xml; /cvs/ruby/editing/src/org/netbeans/modules/ruby/DefaultKeyBindings.xml,v <-- DefaultKeyBindings.xml new revision: 1.11; previous revision: 1.10 done RCS file: /cvs/ruby/projects/src/META-INF/services/org.netbeans.spi.gototest.TestLocator,v done Checking in projects/src/META-INF/services/org.netbeans.spi.gototest.TestLocator; /cvs/ruby/projects/src/META-INF/services/org.netbeans.spi.gototest.TestLocator,v <-- org.netbeans.spi.gototest.TestLocator initial revision: 1.1 done Removing projects/src/META-INF/services/org.netbeans.api.gsf.EditorAction; /cvs/ruby/projects/src/META-INF/services/org.netbeans.api.gsf.EditorAction,v <-- org.netbeans.api.gsf.EditorAction new revision: delete; previous revision: 1.1 done Checking in projects/src/org/netbeans/modules/ruby/rubyproject/ui/resources/layer.xml; /cvs/ruby/projects/src/org/netbeans/modules/ruby/rubyproject/ui/resources/layer.xml,v <-- layer.xml new revision: 1.14; previous revision: 1.13 done IDE: [10/11/07 10:58 AM] Committing finished