Permalink
Browse files

Only drop indexes before the entire suite

  • Loading branch information...
1 parent a1bf098 commit ab3af29d3d85cb9440684bb91af066bdeea01019 @jnunemaker jnunemaker committed Oct 12, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 spec/helper.rb
View
@@ -36,10 +36,15 @@ def oh(*args)
config.include OrderedHashHelpers
+ config.before(:suite) do
+ DB.collections.map do |collection|
+ collection.drop_indexes
+ end
+ end
+
config.before(:each) do
DB.collections.map do |collection|
collection.remove
- collection.drop_indexes
end
end
end

0 comments on commit ab3af29

Please sign in to comment.