Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (9 sloc) 0.434 kB
ROOT_PATH = File.dirname(__FILE__)
def run_spec(file)
system "rspec #{file}" if File.exist?(File.join(ROOT_PATH, file))
end
watch('spec/.*_spec\.rb') {|m| run_spec m[0] }
watch('spec/notes/.*_spec\.rb') {|m| run_spec m[0] }
watch('lib/rails-footnotes/(.*)\.rb') {|m| run_spec("spec/#{m[1]}_spec.rb") }
watch('lib/rails-footnotes/notes/.*_note\.rb') {|m| run_spec("spec/notes/#{m[1]}") }
watch('Gemfile') {|m| run_spec("spec") }
Jump to Line
Something went wrong with that request. Please try again.