`spring rspec` just displays spring help.. why?
ANSWER OUTDATED! Was fixed. See @pfleidi's answer below.
I've solved the problem, even if i dont know why it has solved the problem.
Just remove gem 'spring', group: :development
from the Gemfile so that you only have gem 'spring-commands-rspec'
left.
Run bundle install
and then spring rpsec spec
will work! Its sooo fast :)
You have to restart the spring. So stop it and then re-run it
spring stop
spring rspec
Then it should works as expected.
I had the same problem. I've solved it by stopping spring and adding to my Gemfile
:
gem 'spring-commands-rspec', group: :development, require: false
Spring needs to be restarted in order to use the newly added command.
bin/spring stop
bin/rspec path/to/file.rb