Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 56c79a3501
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (15 sloc) 0.421 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
require 'autotest/growl'
Autotest.add_hook :reset do |at|
  at.clear_mappings
  at.add_mapping(/^(.*?)(_spec)?\.rb$/) { |filename, m|
    if m[2]
      filename
    else
      "#{m[1]}_spec.rb"
    end
  }
end
Autotest::Growl::show_modified_files = true #which changes prompted the autospec run
Autotest.add_hook :initialize do |at|
  %w{.git .svn .hg .DS_Store ._* log}.each {|exception|at.add_exception(exception)}
end
Something went wrong with that request. Please try again.