Skip to content

Commit 59654f4

Browse files
committed
don't raise an error for no server file if testing
1 parent a8eca11 commit 59654f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/guard/go/runner.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ class GoRunner
1010
def initialize(options)
1111
@options = options
1212

13-
raise "Server file not found. Check your :server option in your Guardfile." unless File.exists? @options[:server]
13+
unless @options[:test] && File.exists?(@options[:server])
14+
raise "Server file not found. Check your :server option in your Guardfile."
15+
end
1416
end
1517

1618
def start

0 commit comments

Comments
 (0)