Autotest.add_hook(:initialize) do |at| at.add_mapping(%r{views/.*\.haml}, true) do |filename, matches| [ 'spec/avm_example_spec.rb' ] end end