Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Don't use 'bundle exec' within .watchr
Browse files Browse the repository at this point in the history
  • Loading branch information
hmans committed Jun 4, 2012
1 parent 1b305ee commit 8b7b8d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .watchr
Expand Up @@ -5,11 +5,11 @@ def run(cmd, msg = nil)
puts "\n"
end

watch("spec/.*_spec\.rb") { |m| run("bundle exec rspec %s" % m[0]) }
watch("lib/happy/(.*)\.rb") { |m| run("bundle exec rspec spec/%s_spec.rb" % m[1]) }
watch('^spec/(spec_helper|factories)\.rb') { |f| run "bundle exec rake spec", "%s.rb has been modified" % f }
watch("spec/.*_spec\.rb") { |m| run("rspec %s" % m[0]) }
watch("lib/happy/(.*)\.rb") { |m| run("rspec spec/%s_spec.rb" % m[1]) }
watch('^spec/(spec_helper|factories)\.rb') { |f| run "rake spec", "%s.rb has been modified" % f }

# Ctrl-\
Signal.trap('QUIT') { run("bundle exec rake spec") }
Signal.trap('QUIT') { run("rake spec") }
# Ctrl-C
Signal.trap('INT') { abort("\nQuitting.") }

0 comments on commit 8b7b8d1

Please sign in to comment.