Permalink
Browse files

Replace autotest with guard.

  • Loading branch information...
spraints committed Nov 18, 2011
1 parent bfc5b62 commit 1d5a4081134dd7cca11ffb508e3f8e9bea41b7bb
Showing with 12 additions and 8 deletions.
  1. +0 −5 .autotest
  2. +2 −3 Gemfile
  3. +10 −0 Guardfile
View
@@ -1,5 +0,0 @@
-Autotest.add_hook(:initialize) do |at|
- at.add_exception /^\.git/
- at.add_exception /^\.bundle/
- at.add_exception /sw[op]$/
-end
View
@@ -5,6 +5,5 @@ gemspec
gem 'rake'
gem 'rspec'
-gem 'autotest', :require => nil
-gem 'autotest-growl', :require => nil
-gem 'ruby-debug'
+gem 'guard-rspec'
+#gem 'ruby-debug'
View
@@ -0,0 +1,10 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+ watch(%r{(spec/.+_spec\.rb)\.*}) { |m| m[1] }
+end
+

0 comments on commit 1d5a408

Please sign in to comment.