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.

Bug 127808 - Navigate to Test for specs
Summary: Navigate to Test for specs
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@ruby
Depends on:
Reported: 2008-02-20 03:26 UTC by vertebrate
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description vertebrate 2008-02-20 03:26:05 UTC
Is it possible for "Go to Test" to be enhanced so that it will work with view templates other than ERB? If I nav to the
spec for my HAML files I get a message saying "Opposite file not found." Which is clearly wrong, since everything is
where it should be. I'm using RSpec so I don't know if this is a factor, but it seems like just adding/dropping the
"_spec" should be all that's needed to nav to the opposing file. Navigating to specs for models and controllers works fine.
Comment 1 undees 2008-02-26 19:54:35 UTC
Another case where it would be nice for "Go to Test" to be enabled is RSpec for plain Ruby (non-Rails) apps.  Currently, Ctrl-Shift-T from the implementation 
file returns "Opposite file not found."

Comment 2 Torbjorn Norbye 2008-02-26 20:05:51 UTC
Undees, can you show the paths to your files (the tested file and its corresponding spec) ? This is supposed to work,
including in non-Rails projects.
Comment 3 undees 2008-02-26 21:14:00 UTC
Hi, Tor.  Thanks for the quick response.

My files are just in the default paths NetBeans uses when I right-click and do a New Ruby Class or New RSpec file, so lib/foo.rb and test/foo_spec.rb.  I tried a 
couple of permutations, like renaming the test/ directory to spec/, but it didn't seem to fix it.