split up answer validation test into themed files
This commit is contained in:
11
Guardfile
11
Guardfile
@ -15,11 +15,16 @@
|
||||
#
|
||||
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
||||
|
||||
guard :minitest, spring: true do # , all_after_pass: true
|
||||
guard :minitest, spring: "bin/rails test", all_after_pass: true, all_on_start: false do
|
||||
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
||||
watch(%r{^test/(.*)\/?(.*)_test\.rb$})
|
||||
watch(%r{^app/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}#{m[2]}_test.rb" }
|
||||
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/lib/#{m[1]}#{m[2]}_test.rb" }
|
||||
|
||||
# run tests when touching files matching: /app/**/*.rb
|
||||
watch(%r{^app/(.*/)?([^/]+)\.rb$}) { |m| ["test/#{m[1]}#{m[2]}_test.rb", "test/#{m[1]}#{m[2]}"] }
|
||||
|
||||
# run tests when touching files matching: /lib/**/*.rb
|
||||
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| ["test/lib/#{m[1]}#{m[2]}_test.rb", "test/lib/#{m[1]}#{m[2]}"] }
|
||||
|
||||
end
|
||||
|
||||
guard 'livereload' do
|
||||
|
Reference in New Issue
Block a user