laurynasl / rubyrogue

Currently just a growing skeleton for roguelike game being written in ruby (NCurses interface) and tested with RSpec

This URL has Read+Write access

laurynasl (author)
Mon Dec 15 10:55:47 -0800 2008
commit  3fa432309dc07d4b5e1a5d826dfff20ac25e43f1
tree    7ee05225f09ebebf50dd92d5c0f388f14ee79108
parent  cc0dfa23c018567517a16205001846149573b854
rubyrogue / .autotest
100644 15 lines (11 sloc) 0.382 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# vim: set filetype=ruby :
 
puts 'I am inside of autotest!'
 
Autotest.add_hook :initialize do |autotest|
  ['log', '.git', 'savegames', 'examples'].each do |exception|
    autotest.add_exception exception
  end
 
  autotest.add_mapping %r{app/(\w+).rb$} do |filename, matchdata|
    name = matchdata.captures[0]
    autotest.files_matching %r{spec/models/#{name}_spec.rb}
  end
end