Sha256: 8cdd6669f47a5d9c827b766105ab1857eccf1bc5f914d71bc2f32ed3fae53015
Contents?: true
Size: 539 Bytes
Versions: 9
Compression:
Stored size: 539 Bytes
Contents
#watch('^test.*/.*_test\.rb') { run tests } watch('^test/functional/(.*)_test\.rb') { |m| run tests('functional', m[1]) } watch('^test/unit/(.*)_test\.rb') { |m| run tests('unit', m[1]) } # -------------------------------------------------- # Helpers # -------------------------------------------------- def tests(type, file = nil) cmd = "rake test:#{type}" cmd << ":file name=#{file}" if file end def run(cmd) now = Time.now.to_s puts "", "=" * cmd.length, now, "" puts cmd puts "-" * cmd.length, "" system cmd end
Version data entries
9 entries across 9 versions & 1 rubygems