Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.354 kB
# -*- ruby -*-
def run_spec(file)
unless File.exist?(file)
puts "#{file} does not exist"
return
end
puts "Running #{file}"
system "rspec #{file}"
puts
end
watch("spec/.*/*_spec\.rb") do |match|
run_spec match[0]
end
watch("lib/(.*)\.rb") do |match|
file = %{spec/#{match[1]}_spec.rb}
run_spec file if File.exists?(file)
end
Jump to Line
Something went wrong with that request. Please try again.