diff --git a/.gitignore b/.gitignore index d87d4be..adb50aa 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ spec/reports test/tmp test/version_tmp tmp +.ruby-gemset +.ruby-version diff --git a/lib/guard/go/runner.rb b/lib/guard/go/runner.rb index 8e296df..c3770e4 100644 --- a/lib/guard/go/runner.rb +++ b/lib/guard/go/runner.rb @@ -10,7 +10,9 @@ class GoRunner def initialize(options) @options = options - raise "Server file not found. Check your :server option in your Guarfile." unless File.exists? @options[:server] + unless @options[:test] && File.exists?(@options[:server]) + raise "Server file not found. Check your :server option in your Guardfile." + end end def start