Sha256: a62bd1fc92b247de229895ddd2747ba6bf4a5a63c042f04e043d210fae2a8422
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
puts "\n--- watchr initialized ---\n\n" def cmd() 'ruby '; end def run_spec(spec) puts "Running #{spec}" system(cmd + spec) puts end watch('^test\/.*_test\.rb') {|md| run_spec(md[0]) } watch('^lib/(.*)\.rb') {|md| run_spec("test/#{md[1]}_test.rb") } # Ctrl-\ Signal.trap('QUIT') do puts "\n--- Running all tests ---\n" run_all_specs puts end # Ctrl-C Signal.trap('INT') { abort("\n") }
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tweetspeak-0.1.0 | test/my.watchr |
tweetspeak-0.1.0 | test/my.watchr.example |