Permalink
Browse files

install rspec

  • Loading branch information...
1 parent bbf530a commit e21bf876586d8499683a787609516da05393c937 Dominique Rose-Rosette committed Sep 19, 2012
Showing with 21 additions and 0 deletions.
  1. +2 −0 .rspec
  2. +6 −0 Guardfile
  3. +2 −0 desi.gemspec
  4. +11 −0 spec/spec_helper.rb
View
2 .rspec
@@ -0,0 +1,2 @@
+--color
+--format documentation
View
6 Guardfile
@@ -3,3 +3,9 @@
guard 'yard' do
watch(%r{lib/.+\.rb})
end
+
+guard 'rspec' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
View
2 desi.gemspec
@@ -15,6 +15,8 @@ an Elastic Search local install for development purposes.}
gem.add_dependency "cocaine"
gem.add_dependency "addressable"
+ gem.add_development_dependency "rspec"
+ gem.add_development_dependency "guard-rspec"
gem.add_development_dependency "guard-yard"
gem.add_development_dependency "redcarpet"
gem.add_development_dependency "rb-inotify"
View
11 spec/spec_helper.rb
@@ -0,0 +1,11 @@
+RSpec.configure do |config|
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.run_all_when_everything_filtered = true
+ config.filter_run :focus
+
+ # Run specs in random order to surface order dependencies. If you find an
+ # order dependency and want to debug it, you can fix the order by providing
+ # the seed, which is printed after each run.
+ # --seed 1234
+ config.order = 'random'
+end

0 comments on commit e21bf87

Please sign in to comment.