Sha256: 0d055d035ab7dbded0eb79294afcf43997aaea458922363728eb741715e5988f
Contents?: true
Size: 455 Bytes
Versions: 183
Compression:
Stored size: 455 Bytes
Contents
ENV['FOG_MOCK'] ||= 'true' ENV['AUTOTEST'] = 'true' ENV['WATCHR'] = '1' def file2shindo(file) result = file.sub('lib/fog/', 'tests/').gsub(/\.rb$/, '_tests.rb') end def run_shindo_test(file) if File.exist? file system("shindont #{file}") else puts "FIXME: No test #{file} [#{Time.now}]" end end watch( 'tests/.*_tests\.rb' ) do |md| run_shindo_test(md[0]) end watch( 'lib/.*\.rb' ) do |md| run_shindo_test(file2shindo(md[0])) end
Version data entries
183 entries across 174 versions & 25 rubygems