Re-namespacing a bit to clear out some fairly old stuff from the top level

This commit is contained in:
Dan Buch
2013-01-22 19:10:10 -05:00
parent ab43fb0146
commit 92f7543872
485 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
def run_spec(file)
unless File.exist?(file)
puts "#{file} does not exist"
return
end
puts "Running #{file}"
system "bundle exec rspec #{file}"
puts
end
watch("spec/[^/]*/[^/]*_spec\\.rb") do |match|
run_spec(match[0])
end
watch("app/(.*)\\.rb") do |match|
run_spec(%{spec/#{match[1]}_spec.rb})
end
# vim:filetype=ruby