Sha256: 05223e8d949b46579de7a739598d657f1f4722f94ad3d017290970e65a4891ac
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
def run(cmd) puts "=== %s" % cmd system cmd puts "\n" end watch("test/.*_test\.rb") { |m| run("bundle exec ruby %s" % m[0]) } watch("lib/schreihals/(.*)\.rb") { |m| run("bundle exec ruby test/%s_test.rb" % m[1]) } watch('^test/test_helper\.rb') { run "rake test" } # Ctrl-\ Signal.trap('QUIT') { run("rake test") } # Ctrl-C Signal.trap('INT') { abort("\nQuitting.") }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schreihals-0.0.3 | .watchr |