Permalink
Browse files

Merge pull request #158 from Lauri/sequel_string_tables

Sequel returns table names as symbols, DatabaseCleaner expects strings
  • Loading branch information...
2 parents 8aa8526 + 1517551 commit d1e2dc973ee6f181a12a50ec0eef66f8ef7a067d @bmabey bmabey committed Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/database_cleaner/sequel/truncation.rb
@@ -35,7 +35,7 @@ def each_table
private
def tables_to_truncate(db)
- (@only || db.tables) - @tables_to_exclude
+ (@only || db.tables.map(&:to_s)) - @tables_to_exclude
end
# overwritten

0 comments on commit d1e2dc9

Please sign in to comment.