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
uhl-cap-recipes-0.2.11 specs.watchr
uhl-cap-recipes-0.2.10 specs.watchr
uhl-cap-recipes-0.1.10 specs.watchr
uhl-cap-recipes-0.1.9 specs.watchr
uhl-cap-recipes-0.1.8 specs.watchr
uhl-cap-recipes-0.1.7 specs.watchr
uhl-cap-recipes-0.1.6 specs.watchr
uhl-cap-recipes-0.1.5 specs.watchr
uhl-cap-recipes-0.1.4 specs.watchr
uhl-cap-recipes-0.1.3 specs.watchr
uhl-cap-recipes-0.1.2 specs.watchr
uhl-cap-recipes-0.1.1 specs.watchr
uhl-cap-recipes-0.1.0 specs.watchr
crazycode-cap-recipes-0.5.3 specs.watchr
crazycode-cap-recipes-0.5.2 specs.watchr
crazycode-cap-recipes-0.5.1 specs.watchr
crazycode-cap-recipes-0.5.0 specs.watchr
crazycode-cap-recipes-0.4.14 specs.watchr
crazycode-cap-recipes-0.4.13 specs.watchr
crazycode-cap-recipes-0.4.12 specs.watchr