Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.338 kb
# Watchr is the preferred method to run specs automatically over rspactor for
# MongoModel.
def run(cmd)
puts cmd
system cmd
end
def spec(file)
run "spec #{file}"
end
watch("spec/.*/*_spec\.rb") do |match|
p match[0]
spec(match[0])
end
watch('lib/(.*/.*)\.rb') do |match|
p match[1]
spec("spec/#{match[1]}_spec.rb")
end
Jump to Line
Something went wrong with that request. Please try again.