Permalink
Browse files

add guard to run specs in the backgrouond, default formatting for the…

… RSpec
  • Loading branch information...
1 parent 7976d39 commit b1a81182f0589d94d26427afe37755005c1e396c @dnagir dnagir committed Dec 10, 2011
Showing with 23 additions and 0 deletions.
  1. +2 −0 .rspec
  2. +7 −0 Gemfile
  3. +14 −0 Guardfile
View
2 .rspec
@@ -0,0 +1,2 @@
+--color
+--tty
View
@@ -8,6 +8,13 @@ group 'test' do
gem "horo", ">= 1.0.2"
gem "rspec", "= 2.6.0"
+ gem 'guard'
+ gem 'ruby_gntp', :require => false # GrowlNotify for Mac
+ gem 'rb-inotify', :require => false
+ gem 'rb-fsevent', :require => false
+ gem 'rb-fchange', :require => false
+ gem "guard-rspec"
+
# use this version for rspec-rails-matchers which work with latest RSpec (Rspec => RSpec)
gem "rspec-rails-matchers", :git => 'git://github.com/afcapel/rspec-rails-matchers.git'
View
@@ -0,0 +1,14 @@
+# 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$})
+
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ watch(%r{^spec/fixtures/(.+)\.rb$}) { "spec" }
+end
+

0 comments on commit b1a8118

Please sign in to comment.