A very simple plugin to jump between your class file and your spec file in a rails app.
- From your class file, type
:ToSpec - From your spec file, type
:FromSpec - Both
:ToSpecand:FromSpechave split window version:ToSpecspand:FromSpecspwhich will open the spec or class file in a new split window.
Note, this currently makes is setup to for a Ruby on Rails project or a mobile web project.
-
If you are using a Ruby on Rails project, your class files will be in
appand your spec files will be inspecfolder. -
If you are using a Mobile web project, your class files will be in
src/jsand your spec filesscr/spec. Currently only handles .coffee files.
We'll make this configurable in the future.
- Refactor Ruby method in corresponding_base.rb perhaps using a better stategy to match the spec/class files.
- Make per project/directoy configurable, allow user to set src/spec directory.
- Match files other than Ruby/CoffeeScript.