class DatabaseCleaner::Strategy
def clean
def clean raise NotImplementedError end
def cleaning(&block)
def cleaning(&block) begin start yield ensure clean end end
def db
def db @db ||= :default end
def initialize(options=nil)
def initialize(options=nil) if options name = self.class.name.sub("DatabaseCleaner::","").sub("::"," ") # e.g. "ActiveRecord Transaction" raise ArgumentError, "No options are available for the #{name} strategy." end end
def start
def start end