From e298366626ef03246f6daca5e686abbcca2c813d Mon Sep 17 00:00:00 2001 From: Micah Geisel Date: Fri, 7 Feb 2020 11:10:26 -0800 Subject: [PATCH] test nil case for DC::Base#orm=. --- spec/database_cleaner/base_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/database_cleaner/base_spec.rb b/spec/database_cleaner/base_spec.rb index 9006982..4f29225 100644 --- a/spec/database_cleaner/base_spec.rb +++ b/spec/database_cleaner/base_spec.rb @@ -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