mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
core no longer knows what a valid adapter is.
This commit is contained in:
parent
e298366626
commit
b555ef6e87
1 changed files with 0 additions and 35 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue