forked from coshx/green-eggs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabe Kopley
committed
Feb 4, 2012
1 parent
81518b2
commit 2077a0f
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# A sample Guardfile | ||
# More info at https://github.com/guard/guard#readme | ||
|
||
# Updates bundles whenever the Gemfile or Gemfile.lock changes | ||
guard 'bundler' do | ||
watch('Gemfile') | ||
watch('Gemfile.lock') | ||
end | ||
|
||
# Migrate the dev database when migrations exist | ||
guard 'migrate' do | ||
watch(%r{^db/migrate/(\d+).+\.rb}) | ||
end | ||
|
||
# Runs rspec tests | ||
guard 'rspec', :cli => "--drb --fail-fast", :all_on_start => false, :all_after_pass => false, :version => 2, :keep_failed => false do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^spec(/.+)*.+_spec\.rb$}) | ||
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch(%r{^app(/.+)*\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
end |