From b555ef6e871cb0538407ac1327f05cbda8dc0f87 Mon Sep 17 00:00:00 2001 From: Micah Geisel Date: Fri, 7 Feb 2020 11:14:05 -0800 Subject: [PATCH] core no longer knows what a valid adapter is. --- spec/database_cleaner/configuration_spec.rb | 35 --------------------- 1 file changed, 35 deletions(-) diff --git a/spec/database_cleaner/configuration_spec.rb b/spec/database_cleaner/configuration_spec.rb index 9e385b1..dfe0609 100644 --- a/spec/database_cleaner/configuration_spec.rb +++ b/spec/database_cleaner/configuration_spec.rb @@ -23,41 +23,6 @@ RSpec.describe DatabaseCleaner::Configuration do expect(config.cleaners.values).to eq [cleaner] end - it "should accept :data_mapper" do - cleaner = config[:data_mapper] - expect(cleaner).to be_a(DatabaseCleaner::Base) - expect(cleaner.orm).to eq :data_mapper - expect(config.cleaners.values).to eq [cleaner] - end - - it "should accept :mongo_mapper" do - cleaner = config[:mongo_mapper] - expect(cleaner).to be_a(DatabaseCleaner::Base) - expect(cleaner.orm).to eq :mongo_mapper - expect(config.cleaners.values).to eq [cleaner] - end - - it "should accept :couch_potato" do - cleaner = config[:couch_potato] - expect(cleaner).to be_a(DatabaseCleaner::Base) - expect(cleaner.orm).to eq :couch_potato - expect(config.cleaners.values).to eq [cleaner] - end - - it "should accept :moped" do - cleaner = config[:moped] - expect(cleaner).to be_a(DatabaseCleaner::Base) - expect(cleaner.orm).to eq :moped - expect(config.cleaners.values).to eq [cleaner] - end - - it 'accepts :ohm' do - cleaner = config[:ohm] - expect(cleaner).to be_a(DatabaseCleaner::Base) - expect(cleaner.orm).to eq :ohm - expect(config.cleaners.values).to eq [cleaner] - end - it "should accept multiple orm's" do cleaners = [config[:couch_potato], config[:data_mapper]] expect(config.cleaners.values.map(&:orm)).to eq [:couch_potato, :data_mapper]