Skip to content

Commit

Permalink
install rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominique Rose-Rosette committed Sep 19, 2012
1 parent bbf530a commit e21bf87
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .rspec
@@ -0,0 +1,2 @@
--color
--format documentation
6 changes: 6 additions & 0 deletions Guardfile
Expand Up @@ -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
2 changes: 2 additions & 0 deletions desi.gemspec
Expand Up @@ -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"
Expand Down
11 changes: 11 additions & 0 deletions 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.