From c3ac4ed3b71da9d13e2c25458fd977c20973b6f5 Mon Sep 17 00:00:00 2001 From: Micah Geisel Date: Fri, 21 Dec 2018 22:37:48 -0700 Subject: [PATCH] these mongo2 files are only used in the mongoid adapter, so move them there. --- .../database_cleaner/mongo2/truncation_mixin.rb | 0 lib/database_cleaner/mongo2/base.rb | 16 ---------------- 2 files changed, 16 deletions(-) rename {lib => adapters/database_cleaner-mongoid/lib}/database_cleaner/mongo2/truncation_mixin.rb (100%) delete mode 100644 lib/database_cleaner/mongo2/base.rb diff --git a/lib/database_cleaner/mongo2/truncation_mixin.rb b/adapters/database_cleaner-mongoid/lib/database_cleaner/mongo2/truncation_mixin.rb similarity index 100% rename from lib/database_cleaner/mongo2/truncation_mixin.rb rename to adapters/database_cleaner-mongoid/lib/database_cleaner/mongo2/truncation_mixin.rb diff --git a/lib/database_cleaner/mongo2/base.rb b/lib/database_cleaner/mongo2/base.rb deleted file mode 100644 index 207d20d..0000000 --- a/lib/database_cleaner/mongo2/base.rb +++ /dev/null @@ -1,16 +0,0 @@ -module DatabaseCleaner - module Mongo2 - def self.available_strategies - %w[truncation] - end - module Base - def db=(desired_db) - @db = desired_db - end - - def db - @db || raise("You have not specified a database. (see Mongo2::Database)") - end - end - end -end