Last active
December 21, 2015 04:29
Revisions
-
derekkraan revised this gist
Aug 16, 2013 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,8 @@ def test_with_cleaner(example) $truncate = false end if example.metadata[:js].blank? DatabaseCleaner.start end example.run -
derekkraan created this gist
Aug 16, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ def test_with_cleaner(example) if $truncate DatabaseCleaner.clean_with :truncation $truncate = false end if example.metadata[:js].blank? DatabaseCleaner.start end example.run ensure if example.metadata[:js] # queue truncation $truncate = true else DatabaseCleaner.clean end end