bundle exec rspec spec
to execute my RSpec tests on another console, it gives me this er开发者_如何学运维ror message:
undefined method 'read_all' for nil:NilClass <NoMethodError>
It's in 1.8/gems/...../lib/spork/run_strategy/magazine.rb:89:in 'run'
rake spec
it just does what's expected, my problem shows up when I want to use spork to speed up my BDD.
I'm running spork on Win7-x86/Ruby1.8.7.
Any ideas?And the answer is:
- Add
gem 'spork', '> 0.9.0.rc9'
(Instead ofgem 'spork', '~> 0.9.0.rc9'
) - Run "
rspec spec/models
" (for models)
Although, in general spork
seems like doesn't work fine in windows ..sometimes it can't fork the processes properly. It works fine randomly (at least for me!)..You should try again and again to get it working.
精彩评论