Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.356 kB
class String
def underscore
gsub(/::/, '/').
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
gsub(/([a-z\d])([A-Z])/,'\1_\2').
downcase
end
end
Autotest.add_hook :initialize do |at|
at.add_mapping(/\.\/(.*)\.[mh]/) do |_, m|
["test/test_#{m[1].underscore}.rb"]
end
end
Autotest.add_hook :run_command do |at|
system "rake compile"
end
Jump to Line
Something went wrong with that request. Please try again.