mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
test nil case for DC::Base#orm=.
This commit is contained in:
parent
5af614f3e7
commit
e298366626
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,12 @@ module DatabaseCleaner
|
|||
cleaner = Base.new
|
||||
expect(cleaner.orm).to be_nil
|
||||
end
|
||||
|
||||
it "can handle being set to nil" do
|
||||
cleaner = Base.new
|
||||
cleaner.orm = nil
|
||||
expect(cleaner.orm).to be_nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue