File: .autotest

package info (click to toggle)
ruby-http-2 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,384 kB
  • sloc: ruby: 5,399; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'autotest/growl'

Autotest.add_hook(:initialize) {|at|
  at.add_exception %r{^\.git|\.yardoc}
  at.add_exception %r{^./tmp}
  at.add_exception %r{coverage}

  at.clear_mappings

  at.add_mapping(%r%^spec/.*_spec\.rb$%) { |filename, _|
    filename
  }
  at.add_mapping(%r%^lib/(.*)\.rb$%) { |_, m|
    ["spec/#{m[1].split('/').last}_spec.rb"]
  }
  at.add_mapping(%r%^spec/(spec_helper|shared/.*)\.rb$%) {
    files_matching %r%^spec/.*_spec\.rb$%
  }
  nil
}