Permalink
Browse files

Testing setup

  • Loading branch information...
1 parent bf0cbc9 commit 4a3a78b9f01cb1127ac45cb186c74767d28c9bc3 @mathieuravaux committed May 7, 2012
Showing with 12 additions and 2 deletions.
  1. +2 −1 .rspec
  2. +2 −1 Guardfile
  3. +1 −0 redis-auto-batches.gemspec
  4. +7 −0 spec/spec_helper.rb
View
3 .rspec
@@ -1,2 +1,3 @@
--color
---format progress
+--format nested
+--no-drb
View
@@ -1,6 +1,7 @@
-guard 'rspec', :version => 2 do
+guard 'rspec', :version => 2, :cli => "--color --format nested --no-drb", :notification => true do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
+ watch(%r{spec/support/.+\.rb}) { "spec" }
end
@@ -21,4 +21,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency("rspec")
gem.add_development_dependency("guard-rspec")
gem.add_development_dependency("json")
+ gem.add_development_dependency("pry")
end
View
@@ -1,4 +1,11 @@
require "redis-auto-batches"
+require "redis"
+require "pry"
+
+Dir[File.expand_path("../support/**/*.rb", __FILE__)].each do |f|
+ require f
+end
+
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true

0 comments on commit 4a3a78b

Please sign in to comment.