mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Corrected spacing.
This commit is contained in:
parent
264eb9e2a9
commit
728f871765
1 changed files with 23 additions and 21 deletions
|
@ -1,27 +1,29 @@
|
||||||
module ::DatabaseCleaner
|
module ::DatabaseCleaner
|
||||||
module Generic
|
module Generic
|
||||||
module Base
|
module Base
|
||||||
|
|
||||||
def self.included(base)
|
def self.included(base)
|
||||||
base.extend(ClassMethods)
|
base.extend(ClassMethods)
|
||||||
end
|
end
|
||||||
|
|
||||||
def db
|
def db
|
||||||
:default
|
:default
|
||||||
end
|
end
|
||||||
|
|
||||||
def cleaning(&block)
|
def cleaning(&block)
|
||||||
start
|
begin
|
||||||
yield
|
start
|
||||||
ensure
|
yield
|
||||||
clean
|
ensure
|
||||||
end
|
clean
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
def available_strategies
|
def available_strategies
|
||||||
%W[]
|
%W[]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue