Sha256: 288cf953f9bb8388186c8943f1847be87fdd10b4fdb91a18e889fa71f9da535b
Contents?: true
Size: 360 Bytes
Versions: 4
Compression:
Stored size: 360 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 watch("spec/.*/*_spec\.rb") do |match| puts(match[0]) spec(match[0]) end watch("lib/(.*/.*)\.rb") do |match| puts(match[1]) spec("spec/#{match[1]}_spec.rb") end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mongoid_likes-0.1.1 | .watchr |
mongoid_likes-0.1.0 | .watchr |
mongoid_likes-0.0.2 | .watchr |
mongoid_likes-0.0.1 | .watchr |