Skip to content

Commit

Permalink
Add guard.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker authored and Isaac Sanders committed Apr 16, 2012
1 parent a8a3229 commit 562a14d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Expand Up @@ -6,3 +6,6 @@ gem 'cucumber', '~> 0.7'
gem 'fakeweb', '~> 1.2'
gem 'rspec', '~> 1.3'
gem 'mongrel', '1.2.0.pre2'
gem 'guard'
gem 'guard-rspec'
gem 'guard-bundler'
16 changes: 16 additions & 0 deletions Guardfile
@@ -0,0 +1,16 @@
rspec_options = {
:version => 1,
:all_after_pass => false,
:all_on_start => false,
}

guard 'rspec', rspec_options do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end

guard 'bundler' do
watch('Gemfile')
watch(/^.+\.gemspec/)
end

0 comments on commit 562a14d

Please sign in to comment.