Created
June 21, 2012 05:36
-
-
Save kwappa/2964058 to your computer and use it in GitHub Desktop.
guard-rspec, guard-spork, guard-livereload を使うための最低限のGuardfileをメモっておく
This file contains hidden or 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
# https://github.com/guard/guard-rspec | |
guard 'rspec', :version => 2, :all_after_pass => false, :all_on_start => false, :cli => '--color --format nested --fail-fast --drb' do | |
watch(%r{^spec/.+_spec\.rb$}) | |
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch('spec/spec_helper.rb') { "spec" } | |
end | |
# https://github.com/guard/guard-spork | |
guard 'spork', :rspec_env => { 'PADRINO_ENV' => 'test' } do | |
watch('Gemfile') | |
watch('Gemfile.lock') | |
watch('spec/spec_helper.rb') { :rspec } | |
end | |
# https://github.com/guard/guard-livereload | |
guard 'livereload', :apply_js_live => false do | |
watch(%r{public/.+\.js}) | |
watch(%r{spec/javascripts/.+\.js}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment