Skip to content

Commit

Permalink
Merge pull request #10 from keithpitty/alter-template-guardfile
Browse files Browse the repository at this point in the history
Fix template
  • Loading branch information
keithpitty committed Mar 3, 2017
2 parents 5626e29 + 8b2e0a6 commit d961e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/guard/konacha-rails/templates/Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# - :rails_environment_file, location of rails environment file,
# should be able to find it automatically
guard 'konacha-rails' do
watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)?$}) { |m| "#{m[1]}_spec.js" }
# alter the next line if necessary e.g. if your js specs are coffee files
watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)?$}) { |m| "spec/javascripts/#{m[1]}_spec.js" }
watch(%r{^(test|spec)/javascripts/.+_(test|spec)\.(js|coffee)$})
end

0 comments on commit d961e95

Please sign in to comment.