Skip to content

Instantly share code, notes, and snippets.

@poppen
Created September 8, 2011 02:38
Show Gist options
  • Select an option

  • Save poppen/1202468 to your computer and use it in GitHub Desktop.

Select an option

Save poppen/1202468 to your computer and use it in GitHub Desktop.
require 'autotest/growl'
#require 'autotest/screen'
require 'autotest/timestamp'
Autotest.add_hook :initialize do |autotest|
autotest.instance_eval do
add_exception %r%^\./(?:db|tex|doc|log|public|script|tmp|vendor|spec/spec_helper.rb|spec/spork.watchr|config|\.autotest)%
end
autotest.add_mapping(/app\/([\/\w_]+)\.(?:rb|haml)$/) do |f, matched|
"spec/#{matched[1]}_spec.rb"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment