Skip to content

Instantly share code, notes, and snippets.

@ryopeko
Created July 27, 2010 06:08
Show Gist options
  • Save ryopeko/491823 to your computer and use it in GitHub Desktop.
Save ryopeko/491823 to your computer and use it in GitHub Desktop.
config.before(:each) do
Mongoid.master.collections.select{ |c| c.name !~ /system\./ }.each { |c| c.drop }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment