Sha256: 1b42aace083614bfea606b7b88dfe5a3afc8a9de85f63f53afd822ce41d6ef7f

Contents?: true

Size: 1000 Bytes

Versions: 5

Compression:

Stored size: 1000 Bytes

Contents

# Run me with:
#
#   $ watchr specs.watchr

# --------------------------------------------------
# Watchr Rules
# --------------------------------------------------
watch( '^test.*/test_.*\.rb'        )   { |m| system "ruby -rubygems -I.:lib %s" % m[0]                       }
watch( '^lib/redgreen/(.*)\.rb'     )   { |m| system "rake -s test:by_fw FW=%s"  % m[1]                       }
watch( '^lib/redgreen/testunit\.rb' )   { |m| system "rake -s test:by_fw FW=testunit,shoulda,context,contest" }
watch( '^lib/redgreen\.rb'          )   { |m| system "rake -s test:all"                                       }
watch( '^test/test_helper\.rb'      )   { |m| system "rake -s test:all"                                       }

# --------------------------------------------------
# Signal Handling
# --------------------------------------------------
# Ctrl-\
Signal.trap('QUIT') do
  puts " --- Running all tests ---\n\n"
  system "rake -s test:all"
end

# Ctrl-C
Signal.trap('INT') { abort("\n") }

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
social_url_stats-0.0.1 vendor/ruby/1.9.1/gems/mynyml-redgreen-0.7.1/specs.watchr
mynyml-redgreen-0.7.1 specs.watchr
mynyml-redgreen-0.7 specs.watchr
mynyml-redgreen-0.6.2.1 specs.watchr
mynyml-redgreen-0.6.2 specs.watchr