Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (12 sloc) 0.329 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# add rules for /other/ specs
Autotest.add_hook :initialize do |at|
  at.add_mapping(%r%^spec/other/.*rb$%) do |filename, _|
    filename
  end

  at.add_mapping(%r%^lib/(.*)\.rb$%) do |_, m|
    ["spec/other/#{m[1]}_spec.rb"]
  end

  at.add_mapping(%r%^script/(.*)\.rb$%) do |_, m|
    ["spec/other/#{m[1]}_spec.rb"]
  end
end
Something went wrong with that request. Please try again.