Sha256: 2a6bab23e297ba0d6108cf8ede2f046ee51427b32069a89001a2eea7aa957808
Contents?: true
Size: 710 Bytes
Versions: 17
Compression:
Stored size: 710 Bytes
Contents
# A sample Guardfile # More info at https://github.com/guard/guard#readme guard 'cucumber' do watch(%r{^features/.+\.feature$}) watch(%r{^features/support/.+$}) { 'features' } watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' } end guard 'minitest' do # with Minitest::Unit watch(%r|^test/(.*)\/?test_(.*)\.rb|) watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" } watch(%r|^test/helper\.rb|) { 'test' } # with Minitest::Spec # watch(%r|^spec/(.*)_spec\.rb|) # watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } # watch(%r|^spec/spec_helper\.rb|) { "spec" } end
Version data entries
17 entries across 17 versions & 1 rubygems