Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add guard.

  • Loading branch information...
commit 828dd369f996470449a305479286f2e3265d49ee 1 parent e9c1d90
@jnunemaker authored
Showing with 19 additions and 0 deletions.
  1. +3 −0  Gemfile
  2. +16 −0 Guardfile
View
3  Gemfile
@@ -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
16 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
Please sign in to comment.
Something went wrong with that request. Please try again.