Is there (or is there going to be) a "go to spec" command in rubymine like the "go to test"? Or a way to alter the behavior of go to test to look for specs?
Ok, you're right, it works for the classes in the standard rails directories...models/views/controllers. My problem is the classes I've put in lib don't work or even a new directory I've put under app. For example, I can't toggle between version.rb/version_spec.rb or authentication.rb/authentication_spec.rb from the tree below.
I think in such cases RubyMine may look for all files $target$_spec.rb and $target$_test.rb in project sources. Also in rails applications it's reasonable to limit search scope to 'test' and 'spec' directories
Hi,
1. In Rails applications: Go To | Test and (Go To | Test Target)
2. Go To | File, *_spec.rb
I tried option 1, but it doesn't work for specs that are in a spec directory using RubyMine 2.0, beta 2
Yes, option 2 works, but I want an easy way to go between test and test subject like option 1
Is you project is Rails application? Could your provide an example
Ok, you're right, it works for the classes in the standard rails directories...models/views/controllers. My problem is the classes I've put in lib don't work or even a new directory I've put under app. For example, I can't toggle between version.rb/version_spec.rb or authentication.rb/authentication_spec.rb from the tree below.
+-project
+-app
| +-metal
| +-version.rb
+-lib
| +-authentication.rb
+-spec
+-lib
| +-authentication_spec.rb
+-metal
+-version_spec.rb
I've filed issue http://youtrack.jetbrains.net/issue/RUBY-5278.
I think in such cases RubyMine may look for all files $target$_spec.rb and $target$_test.rb in project sources. Also in rails applications it's reasonable to limit search scope to 'test' and 'spec' directories