Sha256: af56e3acc4b9770c752b69533329428b5f1ba7ff8212bb61038bc3e281d5f404
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
# A sample Guardfile # More info at https://github.com/guard/guard#readme ## Uncomment and set this to only include directories you want to watch # directories %w(app lib config test spec features) \ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")} ## Note: if you are using the `directories` clause above and you are not ## watching the project directory ('.'), then you will want to move ## the Guardfile to a watched dir and symlink it back, e.g. # # $ mkdir config # $ mv Guardfile config/ # $ ln -s config/Guardfile . # # and, you'll have to watch "config/Guardfile" instead of "Guardfile" guard :minitest, test_folders: ['test', 'lib/roro/stacks'] do # with Minitest::Unit watch(%r{^lib/roro/stacks/(.*)\/?(.*)_test\.rb$}) watch(%r{^lib/roro/stacks/(.*/)?([^/]+)\.yml$}) { |m| "lib/roro/stacks/#{m[1]}test" } watch(%r{^lib/roro/stacks/(.*/)?templates/(.*)$}) { |m| "lib/roro/stacks/#{m[1]}test" } watch(%r{^test/(.*)\/?(.*)_test\.rb$}) watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}#{m[2]}_test.rb" } watch(%r{^test/test_helper\.rb$}) { 'test' } end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
roro-0.3.30 | Guardfile |
roro-0.3.28 | Guardfile |
roro-0.3.27 | Guardfile |
roro-0.3.25 | Guardfile |
roro-0.3.24 | Guardfile |
roro-0.3.23 | Guardfile |