Closed cjbottaro closed 9 years ago
@cjbottaro I have the same problem. Do you use an rvm?
I also have the same problem. I use rvm
Guys, it seems that it isn't binstub problem. It much like rvm trouble. Just try to bin/rspec
or add raise code to binstubbed file and try to run usual rspec spec
& bin/rspec spec
@asiniy No, I use rbenv.
@cjbottaro maybe it is both rbenv
& rvm
trouble?
Anyway, answer by maintainers will be great.
related issue at stack overflow
is problem still present?
Not working for me (Rbenv)
I run $ bin/rspec
bin/rspec has the same content from the first comment.
Commands for your application:
. . .
rails Run a rails command. The following sub commands will use spring: console, runner, generate, destroy.
rake Runs the rake command
rspec Runs the rspec command
/home/itsnikolay/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `load': cannot load such file -- /home/itsnikolay/projects/CUSTOMERS/resretailr/rspec (LoadError)
from /home/itsnikolay/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `block in load_spec_files'
from /home/itsnikolay/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `each'
from /home/itsnikolay/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `load_spec_files'
same error as @itsNikolay here, with clean rails app and RVM, maybe it's related to rspec 3?
Experiencing the same error ^ on chruby
Same problem here: Rspec 3 Rails 4.1
Same problem: RSpec 3.1 Rails 4.2.0.beta1
Workes after running spring stop
. Seems like the rspec
command had not been registered yet.
@itsNikolay this answer helped me http://stackoverflow.com/a/21260385
Just remove gem 'spring', group: :development from the Gemfile so that you only have gem 'spring-commands-rspec' left.
@Imomoi
I think that spring stop
(as described above) is enough. Because now the gem works fine in my apps.
Thanks for reply.
Yeah, spring stop
helps that completely. That's how it end when you don't read the README.md
;]
I installed
spring-commands-rspec
, stopped Spring, issued aspring binstub rspec
, it created it with this content:But now each time I run
rspec spec
it doesn't start Spring. Not using the binstub works fine (spring rspec spec
).