split up answer validation test into themed files

This commit is contained in:
Mark Moser
2016-08-16 12:08:13 -05:00
parent 114450dd08
commit 10d69f3664
11 changed files with 203 additions and 175 deletions

View File

@ -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