4

I'm using rails.vim and when I use :A on a model file, it opens the corresponding testunit file. How do I make it open the corresponding rspec file?

double free
  • 1,027
  • 2
  • 9
  • 14

1 Answers1

4

Rails.vim will load test/unit first (if it exists), then rspec.

So, fix the framework you use most often and keep your stuff in either the test or spec folders.

Jesse Wolgamott
  • 40,197
  • 4
  • 83
  • 109
  • Yup, that's exactly what I found out. I removed my testunit stuff; now when I use :A it loads my corresponding rspec files, just like I wanted. – double free Oct 08 '11 at 02:56
  • How exactly does it "load" it? It keeps trying to open test/unit/whatever_test.rb for me, even though I use RSpec and only have the spec/ directory (test/ does not exist.) – Emil Ahlbäck Nov 26 '12 at 06:21