Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 2.0.0.rc.1
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.413 kb
# 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/unit/#{match[1]}_spec.rb")
spec("spec/integration/#{match[1]}_spec.rb")
end
Jump to Line
Something went wrong with that request. Please try again.