Module: DatabaseCleaner::Mongo::Base

Included in:
Truncation
Defined in:
lib/database_cleaner/mongo/base.rb

Instance Method Summary collapse

Instance Method Details

#dbObject



11
12
13
# File 'lib/database_cleaner/mongo/base.rb', line 11

def db
  @db || raise("You have not specified a database.  (see Mongo::Database)")
end

#db=(desired_db) ⇒ Object



7
8
9
# File 'lib/database_cleaner/mongo/base.rb', line 7

def db=(desired_db)
  @db = desired_db
end