Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replace autotest with guard.

  • Loading branch information...
commit 1d5a4081134dd7cca11ffb508e3f8e9bea41b7bb 1 parent bfc5b62
@spraints authored
Showing with 12 additions and 8 deletions.
  1. +0 −5 .autotest
  2. +2 −3 Gemfile
  3. +10 −0 Guardfile
View
5 .autotest
@@ -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 Gemfile
@@ -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
10 Guardfile
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.