Sha256: a304d644cb3fef76a3998fd2f1366bb777a40dad3055f483a0262e8afc00277f

Contents?: true

Size: 249 Bytes

Versions: 4

Compression:

Stored size: 249 Bytes

Contents

# Watchr script for unit tests

def run_test(test)
  system("bundle exec ruby #{test}")
end

watch(/^test\/.*_test\.rb/) { |md| run_test(md[0]) }
watch(/^lib\/(.*)\.rb/) { |md| run_test("test/#{md[1]}_test.rb") }

Signal.trap("INT") { abort("\n") }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pathological-0.2.4 test/unit.watchr.rb
pathological-0.2.3 test/unit.watchr.rb
pathological-0.2.2 test/unit.watchr.rb
pathological-0.2.1 test/unit.watchr.rb