Browse files

Add guard-rspec

  • Loading branch information...
1 parent e77ecda commit 243cf43bfdb971dd152b7e77ca1071723a5f09cb @nertzy nertzy committed Apr 2, 2013
Showing with 13 additions and 0 deletions.
  1. +7 −0 Gemfile
  2. +6 −0 Guardfile
View
7 Gemfile
@@ -15,3 +15,10 @@ gem "with_model"
gem "activerecord", ENV["ACTIVE_RECORD_VERSION"] if ENV["ACTIVE_RECORD_VERSION"]
gem 'coveralls', :require => false, :platform => :mri_20
+
+group :development do
+ gem 'guard-rspec', :require => false
+ gem 'rb-inotify', :require => false
+ gem 'rb-fsevent', :require => false
+ gem 'rb-fchange', :require => false
+end
View
6 Guardfile
@@ -0,0 +1,6 @@
+guard 'rspec' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
+

0 comments on commit 243cf43

Please sign in to comment.