Closed spinlock99 closed 10 years ago
I believe this will only work in spec/
directory. From spec/models/
directory, I get:
cannot load such file -- spec_helper
It makes sense, since spec_helper
's path is not in the load path.
You're right. That's what I get for testing against a toy project instead of a real one. I think setting autochdir is probably not going to be compatible with vim-rspec.
This is my workaround for issue #40. Mostly a recommendation for how to configure
g:rspec_command
whenautochdir
is set. Also makes small change toRunAllSpecs()
which should not(TM) affect other users.