Merge pull request #278 from imomoisoft/master

Updated regexp for filter system collections
This commit is contained in:
Ernesto Tagwerker 2014-08-18 13:03:26 -03:00
commit 3be080ef21

View file

@ -23,7 +23,7 @@ module DatabaseCleaner
session.use(db)
end
session['system.namespaces'].find(:name => { '$not' => /system|\$/ }).to_a.map do |collection|
session['system.namespaces'].find(:name => { '$not' => /\.system\.|\$/ }).to_a.map do |collection|
_, name = collection['name'].split('.', 2)
name
end