Sha256: 2244107d296826b3b0eeaefb54c069acd1c3be37ff47915de62c209447c7f7f9

Contents?: true

Size: 606 Bytes

Versions: 3

Compression:

Stored size: 606 Bytes

Contents

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard "minitest" do
  # 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" }

  # Rails 3.2
  watch(%r|^app/controllers/(.*)\.rb|) { |m| "spec/controllers/#{m[1]}_spec.rb" }
  watch(%r|^app/mailers/(.*)\.rb|)     { |m| "spec/mailers/#{m[1]}_spec.rb" }
  watch(%r|^app/helpers/(.*)\.rb|)     { |m| "spec/helpers/#{m[1]}_spec.rb" }
  watch(%r|^app/models/(.*)\.rb|)      { |m| "spec/models/#{m[1]}_spec.rb" }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thincloud-test-0.1.2 lib/generators/thincloud/test/templates/Guardfile
thincloud-test-0.1.1 lib/generators/thincloud/test/templates/Guardfile
thincloud-test-0.1.0 lib/generators/thincloud/test/templates/Guardfile