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