# -*- ruby -*- require "autotest/restart" Autotest.add_hook :initialize do |at| at.add_mapping(/.*\.c/) do |f, _| at.files_matching(/_test.*rb$/) end end Autotest.add_hook :run_command do |at| system "rake clean compile" end