Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 4 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Feb 16, 2012
@sidonath sidonath Ensure guard runs specs for .js.coffee files
With the default Guardfile, newest_js_file will try to look for file matching "spec/javascripts/foo.js_spec" instead of "spec/javascripts/foo_spec"
9408f61
@sidonath sidonath Rerun all specs when a helper is changed 5c40136
Commits on Feb 21, 2012
@johnbintz Merge pull request #2 from sidonath/patch-2
Rerun all specs when a helper is changed
b78d660
@johnbintz Merge pull request #1 from sidonath/patch-1
Ensure guard runs specs for .js.coffee files
b25ede7
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/guard/jasmine-headless-webkit/templates/Guardfile
View
3  lib/guard/jasmine-headless-webkit/templates/Guardfile
@@ -9,7 +9,8 @@ spec_location = "spec/javascripts/%s_spec"
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/assets/javascripts/(.*?)\.(js(\.coffee)?|coffee)$}) { |m| newest_js_file(spec_location % m[1]) }
watch(%r{^spec/javascripts/(.*)_spec\..*}) { |m| newest_js_file(spec_location % m[1]) }
+ watch(%r{^spec/javascripts/helpers/(.*)}) { spec_location % '*' }
end

No commit comments for this range

Something went wrong with that request. Please try again.