Skip to content
Browse files

Update Guardfile to run the specs for support libs

  • Loading branch information...
1 parent 428b2c3 commit f7af8a5bc021449dfd8c0956c058280c92d8566d @dkubb committed Dec 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Guardfile
View
5 Guardfile
@@ -14,8 +14,9 @@ guard :rspec, :cli => File.read('spec/spec.opts').split.join(' '), :keep_failed
watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec' }
# run unit specs if associated lib code is modified
- watch(%r{\Alib/(.+)\.rb\z}) { |m| Dir["spec/unit/#{m[1]}"] }
- watch("lib/#{File.basename(File.expand_path('../', __FILE__))}.rb") { 'spec' }
+ watch(%r{\Alib/(.+)\.rb\z}) { |m| Dir["spec/unit/#{m[1]}"] }
+ watch(%r{\Alib/(.+)/support/(.+)\.rb\z}) { |m| Dir["spec/unit/#{m[1]}/#{m[2]}"] }
+ watch("lib/#{File.basename(File.expand_path('../', __FILE__))}.rb") { 'spec' }
# run a spec if it is modified
watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z})

0 comments on commit f7af8a5

Please sign in to comment.
Something went wrong with that request. Please try again.