Skip to content
This repository
Browse code

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

… RSpec
commit b1a81182f0589d94d26427afe37755005c1e396c 1 parent 7976d39
Dmytrii Nagirniak authored
2  .rspec
... ...
@@ -0,0 +1,2 @@
  1
+--color
  2
+--tty
7  Gemfile
@@ -8,6 +8,13 @@ group 'test' do
8 8
   gem "horo", ">= 1.0.2"
9 9
   gem "rspec", "= 2.6.0"
10 10
 
  11
+  gem 'guard'
  12
+  gem 'ruby_gntp', :require => false # GrowlNotify for Mac
  13
+  gem 'rb-inotify', :require => false
  14
+  gem 'rb-fsevent', :require => false
  15
+  gem 'rb-fchange', :require => false
  16
+  gem "guard-rspec"
  17
+
11 18
   # use this version for rspec-rails-matchers which work with latest RSpec (Rspec => RSpec)
12 19
   gem "rspec-rails-matchers", :git => 'git://github.com/afcapel/rspec-rails-matchers.git'
13 20
 
14  Guardfile
... ...
@@ -0,0 +1,14 @@
  1
+# A sample Guardfile
  2
+# More info at https://github.com/guard/guard#readme
  3
+
  4
+guard 'rspec', :version => 2 do
  5
+  watch(%r{^spec/.+_spec\.rb$})
  6
+  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/#{m[1]}_spec.rb" }
  7
+  watch('spec/spec_helper.rb')  { "spec" }
  8
+
  9
+  watch(%r{^spec/.+_spec\.rb$})
  10
+
  11
+  watch(%r{^spec/support/(.+)\.rb$})  { "spec" }
  12
+  watch(%r{^spec/fixtures/(.+)\.rb$}) { "spec" }
  13
+end
  14
+

0 notes on commit b1a8118

Please sign in to comment.
Something went wrong with that request. Please try again.