Method: Webhookdb::SpecHelpers::Postgres._truncate

Defined in:
lib/webhookdb/spec_helpers/postgres.rb

._truncate(example) ⇒ Object



54
55
56
57
58
59
# File 'lib/webhookdb/spec_helpers/postgres.rb', line 54

module_function def _truncate(example)
  tr = example.[:truncate]
  return unless tr
  tr = [tr] unless tr.respond_to?(:to_ary)
  tr.each(&:truncate)
end