Browse files

Prevent duplicate test loads.

Editing a test and it's associated file (model/controller) then
saving both at the same time was loading the test twice.
  • Loading branch information...
Dean Strelau
Dean Strelau committed Mar 23, 2011
1 parent e50413d commit 61601fc935355205220b2e8d6c1d0685695923b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/guard/forku.rb
@@ -32,7 +32,7 @@ def load_in_fork(*paths)
paths.collect! {|p|
p = File.join(p,'**/*_test.rb') if
- }.flatten!
+ }.flatten!.uniq!
pid = fork do
ActiveRecord::Base.establish_connection if defined?(ActiveRecord::Base)

0 comments on commit 61601fc

Please sign in to comment.