Sha256: 9f7d14965cb4ec6378babe90d91a034b2e2767b534b9d7ce526e2182b66c9204
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
require 'autotest/growl' # $LOAD_PATH.unshift(File.join(File.dirname(File.expand_path(__FILE__)), 'spec' )) Autotest.add_hook :initialize do |at| at.clear_mappings at.libs = %w[. lib spec].join(File::PATH_SEPARATOR) %w{.svn .hg .git}.each {|exception|at.add_exception(exception)} at.add_mapping %r%^spec/(.*)_spec\.rb% do |f, _| f end at.add_mapping %r%^lib/(.*)\.rb% do |_, m| possible = File.basename(m[1]) dirname = File.dirname(m[1]) at.files_matching(%r%spec/lib/#{possible}_spec\.rb%) + at.files_matching(%r%spec/lib/#{dirname}/#{possible}_spec\.rb%) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jsus-0.1.13 | .autotest |
jsus-0.1.12 | .autotest |
jsus-0.1.11 | .autotest |