Skip to content

Instantly share code, notes, and snippets.

@ppworks
Created August 26, 2011 12:05
Show Gist options
  • Save ppworks/1173279 to your computer and use it in GitHub Desktop.
Save ppworks/1173279 to your computer and use it in GitHub Desktop.
"Could not start Spork server for RSpec" when guard start.
% guard start
Guard is now watching at '/Path/To/Your/Project/Root'
Starting Spork for RSpec
Using RSpec
Preloading Rails environment
Loading Spork.prefork block...
ERROR: Could not start Spork server for RSpec. Make sure you can use it manually first.
Guard::RSpec is running, with RSpec 2!
diff --git a/Guardfile b/Guardfile
index 90843a8..6ffae21 100644
--- a/Guardfile
+++ b/Guardfile
@@ -1,7 +1,7 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
-guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
+guard 'spork', :wait => 60, :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
@wout
Copy link

wout commented Jun 18, 2013

Helped me too! Thanks!!!

@StandardNerd
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment