Skip to content

Commit 7ad713f

Browse files
authored
Bugfix: Allow empty options for truncation strategy
Fixes a regression introduced in #20 that breaks `DatabaseCleaner.clean_with(:truncation)`.
1 parent cc22fa2 commit 7ad713f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/database_cleaner/sequel/truncation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module DatabaseCleaner
44
module Sequel
55
class Truncation < Base
6-
def initialize(opts)
6+
def initialize(opts = {})
77
@only = opts[:only] || []
88
@except = opts[:except] || []
99
@pre_count = opts[:pre_count] || false

0 commit comments

Comments
 (0)