Module: DatabaseCleaner::Mongo::Base

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

Instance Method Summary collapse

Instance Method Details

#dbObject


13
14
15
# File 'lib/database_cleaner/mongo/base.rb', line 13

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

#db=(desired_db) ⇒ Object


9
10
11
# File 'lib/database_cleaner/mongo/base.rb', line 9

def db=(desired_db)
  @db = desired_db
end