Guardfile in pgbackups-archive-0.0.4 vs Guardfile in pgbackups-archive-0.1.0

- old
+ new

@@ -1,4 +1,17 @@ -guard "rspec", cli: "--color --format Fuubar", all_on_start: false, all_after_pass: false do - watch(%r{^spec/(.*)_spec\.rb$}) - watch(%r{^lib/(.*)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } +# A sample Guardfile +# More info at https://github.com/guard/guard#readme + +guard "minitest" do + # with Minitest::Spec + watch(%r|^test/(.*)_test\.rb|) + watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}#{m[2]}_test.rb" } + watch(%r|^test/minitest_helper\.rb|) { "test" } + watch(%r|^test/support/|) { "test" } + + # Rails 3.2 + watch(%r|^app/controllers/(.*)\.rb|) { |m| "test/controllers/#{m[1]}_test.rb" } + watch(%r|^app/mailers/(.*)\.rb|) { |m| "test/mailers/#{m[1]}_test.rb" } + watch(%r|^app/helpers/(.*)\.rb|) { |m| "test/helpers/#{m[1]}_test.rb" } + watch(%r|^app/models/(.*)\.rb|) { |m| "test/models/#{m[1]}_test.rb" } end +