Sha256: 4b28112b6c4945ab425b2264c8947918e7bd2f479c3c36d05fddd7778dce6d85

Contents?: true

Size: 565 Bytes

Versions: 6

Compression:

Stored size: 565 Bytes

Contents

# -*- ruby -*-

require 'autotest/restart'

Autotest.add_hook :initialize do |at|
  at.testlib = 'minitest/spec'

  %w{.git .svn .hg .swp .DS_Store ._* tmp}.each do |exception|
    at.add_exception(exception)
  end

  at.clear_mappings
  tests = %r%^test/lib/.*_test\.rb$%

  at.add_mapping(%r%^lib/(.*)\.rb$%) do |_, m|
    ["test/lib/#{m[1]}_test.rb"]
  end

  at.add_mapping(tests) do |filename, _|
    filename
  end

  at.add_mapping(%r%^test/.*\.rb$%) do
    at.files_matching tests
  end
end

# require 'autotest/rcov'
# Autotest::RCov.command = 'rcov_info'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nephophobia-0.0.6 .autotest
nephophobia-0.0.5 .autotest
nephophobia-0.0.4 .autotest
nephophobia-0.0.3 .autotest
nephophobia-0.0.2 .autotest
nephophobia-0.0.1 .autotest