lib/gorgon/worker.rb in gorgon-0.4.0.rc2 vs lib/gorgon/worker.rb in gorgon-0.4.0
- old
+ new
@@ -135,10 +135,11 @@
end
# Is the user using test-unit gem?
def test_unit_gem?
gemfile_lock = "./Gemfile.lock"
- File.exists?(gemfile_lock) && File.read(gemfile_lock).scan(/\btest-unit/).any?
+ @using_test_unit_gem ||= File.exists?(gemfile_lock) &&
+ File.read(gemfile_lock).scan(/\btest-unit/).any?
end
def make_start_message(filename)
{:action => :start, :hostname => Socket.gethostname, :worker_id => @worker_id, :filename => filename}
end