Permalink
Browse files

Add guard.

  • Loading branch information...
1 parent a8a3229 commit 562a14d62e34ec099c8aa3b74c9dbcf74004be38 @jnunemaker committed with Isaac Sanders Apr 16, 2012
Showing with 19 additions and 0 deletions.
  1. +3 −0 Gemfile
  2. +16 −0 Guardfile
View
@@ -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'
View
@@ -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.