Sha256: 25df7000cf17c07fca77f970112750dc34036e94143ab824d7f1fe8dc0d29159

Contents?: true

Size: 902 Bytes

Versions: 37

Compression:

Stored size: 902 Bytes

Contents

# Run me with:
#
# $ watchr specs.watchr
 
# --------------------------------------------------
# Helpers
# --------------------------------------------------
def run(cmd)
  puts(cmd)
  system(cmd)
end
 
def run_all_tests
  # see Rakefile for the definition of the test:all task
  system( "rake spec VERBOSE=true" )
end
 
# --------------------------------------------------
# Watchr Rules
# --------------------------------------------------
watch("^lib/(.*)\.rb") { |m| run("spec spec/cap_recipes_spec.rb -c") }
watch("spec.*/spec_helper\.rb") { run_all_tests }
watch('^spec.*/(.*)_spec\.rb') { |m|  run("spec spec/#{m[1]}_spec.rb -c")}
 
# --------------------------------------------------
# Signal Handling
# --------------------------------------------------
# Ctrl-\
Signal.trap('QUIT') do
  puts " --- Running all tests ---\n\n"
  run_all_tests
end
 
# Ctrl-C
Signal.trap('INT') { abort("\n") }

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
crazycode-cap-recipes-0.4.11 specs.watchr
crazycode-cap-recipes-0.4.10 specs.watchr
crazycode-cap-recipes-0.4.9 specs.watchr
crazycode-cap-recipes-0.4.8 specs.watchr
crazycode-cap-recipes-0.4.6 specs.watchr
crazycode-cap-recipes-0.4.5 specs.watchr
crazycode-cap-recipes-0.4.4 specs.watchr
crazycode-cap-recipes-0.4.3 specs.watchr
crazycode-cap-recipes-0.4.2 specs.watchr
crazycode-cap-recipes-0.4.1 specs.watchr
crazycode-cap-recipes-0.4.0 specs.watchr
crazycode-cap-recipes-0.3.39.3 specs.watchr
crazycode-cap-recipes-0.3.39.2 specs.watchr
crazycode-cap-recipes-0.3.39.1 specs.watchr
crazycode-cap-recipes-0.3.39 specs.watchr
crazycode-cap-recipes-0.3.38 specs.watchr
crazycode-cap-recipes-0.3.37 specs.watchr