module Bake::Test
def self.detect(root)
def self.detect(root) if exist?(root, "spec") return :rspec elsif exist?(root, "config/sus.rb") return :sus elsif exist?(root, "test") return :sus elsif exist?(root, "Rakefile") || exist?(root, "rakefile") return :rake end end
def self.exist?(root, path)
def self.exist?(root, path) File.exist?(File.join(root, path)) end