Sha256: b7e79e31d5f93643b296ad9a951dd1d31fa5cff779b0c9c1c20ff29c53bb0f7f

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 Bytes

Contents

Autotest.add_hook :initialize do |at|
  # Requires bundler before minitest since the minitest bundled with Ruby does
  # not support runners.
  at.testlib = 'bundler/setup minitest/unit'
  
  # Mappings from http://opensoul.org/blog/archives/2008/08/22/autotest-mapping-for-rails-test-conventions/.
  at.clear_mappings
  
  at.add_mapping %r%/^lib/(.*)\.rb$% do |_, m|
    possible = File.basename(m[1])
    files_matching %r%^test/.*(#{possible}_test|test_#{possible})\.rb$%
  end
  
  at.add_mapping(%r%^test/.*\.rb$%) { |filename, _| filename }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zeppelin-0.5.0 .autotest
zeppelin-0.4.0 .autotest
zeppelin-0.3.0 .autotest
zeppelin-0.2.0 .autotest
zeppelin-0.1.0 .autotest