diff --git a/lib/guard/jasmine-headless-webkit/templates/Guardfile b/lib/guard/jasmine-headless-webkit/templates/Guardfile index 6001f3e..56db978 100644 --- a/lib/guard/jasmine-headless-webkit/templates/Guardfile +++ b/lib/guard/jasmine-headless-webkit/templates/Guardfile @@ -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