Permalink
Browse files

Do better when we don't find any tests.

  • Loading branch information...
1 parent 512ec3c commit 36e2b5dd99d552f32b32df9449299ff6c54eeb7d Dean Strelau committed Mar 23, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/guard/forku.rb
View
@@ -35,7 +35,12 @@ def load_in_fork(*paths)
fork do
ActiveRecord::Base.establish_connection if defined?(ActiveRecord::Base)
- paths.each {|p| load p }
+ if paths.empty?
+ UI.info "No tests found. Skipping."
+ exit! # skip test/unit autorun
+ else
+ paths.each {|p| load p }
+ end
end
end
private :load_in_fork

0 comments on commit 36e2b5d

Please sign in to comment.