ensure exact extension matches on some regexps
This commit is contained in:
parent
318b09c6f0
commit
8758edcd09
|
@ -7,9 +7,9 @@ spec_location = "spec/javascripts/%s_spec"
|
|||
# spec_location = "spec/javascripts/%sSpec"
|
||||
|
||||
guard 'jasmine-headless-webkit' do
|
||||
watch(%r{^app/views/.*\.jst})
|
||||
watch(%r{^public/javascripts/(.*)\.js}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
watch(%r{^app/views/.*\.jst$})
|
||||
watch(%r{^public/javascripts/(.*)\.js$}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)$}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
watch(%r{^spec/javascripts/(.*)_spec\..*}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue