Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add an .autotest file.

  • Loading branch information...
commit a6eb4e891a37e4b2d8d595c047ef8d6892fcd859 1 parent cb5f51d
@bernd authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 .autotest
View
21 .autotest
@@ -0,0 +1,21 @@
+require 'autotest/restart'
+
+Autotest.add_hook :initialize do |at|
+ at.testlib = 'minitest/autorun'
+ at.order = :natural
+ at.libs = '.:lib:spec'
+
+ at.clear_mappings
+
+ at.add_mapping(%r{^spec/.*_spec\.rb$}) do |filename, _|
+ filename
+ end
+
+ at.add_mapping(%r{^lib/(.*)\.rb$}) do |_, m|
+ ["spec/#{m[1].gsub('fpm/cookery/', '')}_spec.rb"]
+ end
+
+ at.add_mapping(%r{^spec/spec_helper\.rb$}) do
+ at.files_matching %r{^spec/.*_spec\.rb$}
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.