spec/helper.rb in bin-0.6.3 vs spec/helper.rb in bin-0.7.0

- old
+ new

@@ -1,11 +1,21 @@ -gem 'activesupport', ENV['ACTIVE_SUPPORT_VERSION'] - $:.unshift(File.expand_path('../../lib', __FILE__)) +require 'rubygems' +require 'bundler' +require 'active_support/all' + +Bundler.require(:default) + require 'bin' -require 'spec' connection = Mongo::Connection.new -DB = connection.db('bin-store-test') +DB = connection.db('test') -puts "\n--- Active Support Version: #{ActiveSupport::VERSION::STRING} ---\n" +RSpec.configure do |c| + c.before(:each) do + DB.collections.each do |collection| + collection.remove + collection.drop_indexes + end + end +end \ No newline at end of file