lib/database_cleaner/configuration.rb in database_cleaner-1.8.5 vs lib/database_cleaner/configuration.rb in database_cleaner-1.99.0.beta

- old
+ new

@@ -19,10 +19,11 @@ values.each { |cleaner| cleaner.strategy = strategy } remove_duplicates end def orm=(orm) + DatabaseCleaner.deprecate "Calling `DatabaseCleaner.orm=` is deprecated, and will be removed in database_cleaner 2.0 with no replacement." add_cleaner(:autodetect) if none? values.each { |cleaner| cleaner.orm = orm } remove_duplicates end @@ -108,10 +109,10 @@ DatabaseCleaner.deprecate "Calling `DatabaseCleaner.init_cleaners` is deprecated, and will be removed in database_cleaner 2.0 with no replacement." end def connections if DatabaseCleaner.called_externally?(__FILE__, caller) - DatabaseCleaner.deprecate "Calling `DatabaseCleaner.connections` is deprecated, and will be removed in database_cleaner 2.0. Use `DatabaseCleaner.cleaners`, instead." + DatabaseCleaner.deprecate "Calling `DatabaseCleaner.connections` is deprecated, and will be removed in database_cleaner 2.0. Use `DatabaseCleaner.cleaners.values`, instead." end add_cleaner(:autodetect) if @cleaners.none? @cleaners.values end