I use Rails 4 with spring
& spring-commands-rspec
gem. This question have relation to this: spring using by default
When I run time rspec
I get something like 5 seconds. If I run time bin/rspec
I have 2 seconds.
If I run time rake -T
I get 3 seconds, if I run time bin/rake -T
I get less than a second.
Where is the trouble? Why I need to run all commands through bin/
binstubs to parse them through spring
. How can I avoid that?
Related issue at github: https://github.com/jonleighton/spring-commands-rspec/issues/17#issuecomment-43174278
There is detailed howto about adding binstubs to path: https://github.com/sstephenson/rbenv/wiki/Understanding-binstubs#adding-project-specific-binstubs-to-path . I think that's better way than @Douglas offered