Permalink
Browse files

Added Guard.

  • Loading branch information...
1 parent 05b6ef4 commit 29125c56e67b69df59fb6c64f5941146a3d38513 @arsduo committed Nov 21, 2011
Showing with 16 additions and 0 deletions.
  1. +10 −0 Gemfile
  2. +6 −0 Guardfile
View
10 Gemfile
@@ -2,6 +2,16 @@ source :rubygems
group :development, :test do
gem "typhoeus"
+
+ # Testing infrastructure
+ gem 'guard'
+ gem 'guard-rspec'
+
+ if RUBY_PLATFORM =~ /darwin/
+ # OS X integration
+ gem "ruby_gntp"
+ gem "rb-fsevent", "~> 0.4.3.1"
+ end
end
if defined? JRUBY_VERSION
View
@@ -0,0 +1,6 @@
+guard 'rspec', :version => 2 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 29125c5

Please sign in to comment.