Sha256: f9792c1e7119eb574d921df4d32a870cf569c0e0f911091104c2a06483c5c890
Contents?: true
Size: 483 Bytes
Versions: 23
Compression:
Stored size: 483 Bytes
Contents
# vim:set filetype=ruby: def run(cmd) puts cmd system cmd end def spec(file) if File.exists?(file) run("rspec #{file}") else puts("Spec: #{file} does not exist.") end end def feature(file) if File.exists?(file) run("cucumber #{file}") else puts("Feature: #{file} does not exist.") end end watch("spec/.*_spec\.rb") do |match| puts(match[0]) spec(match[0]) end watch("features/.*\.feature") do |match| puts(match[0]) feature(match[0]) end
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
mongo_doc-0.6.5 | .watchr |
mongo_doc-0.6.4 | .watchr |
mongo_doc-0.6.3 | .watchr |