<commit_before>require File.dirname(__FILE__) + '/../../spec_helper'
require 'active_record'

require 'database_cleaner/active_record/truncation'

module ActiveRecord
  module ConnectionAdapters
    [MysqlAdapter, Mysql2Adapter, SQLite3Adapter, JdbcAdapter, PostgreSQLAdapter, IBM_DBAdapter].each do |adapter|
      describe adapter, "#truncate_table" do
        it "responds" do
          adapter.instance_methods.should include('truncate_table')
        end<commit_msg>Specs: Check for response to :truncate_table instead of string<commit_after>require File.dirname(__FILE__) + '/../../spec_helper'
require 'active_record'

require 'database_cleaner/active_record/truncation'

module ActiveRecord
  module ConnectionAdapters
    [MysqlAdapter, Mysql2Adapter, SQLite3Adapter, JdbcAdapter, PostgreSQLAdapter, IBM_DBAdapter].each do |adapter|
      describe adapter, "#truncate_table" do
        it "responds" do
          adapter.instance_methods.should include(:truncate_table)
        end
{'fraction_non_alphanumeric': 0.0898989898989899, 'fraction_numerical': 0.00404040404040404, 'mean_word_length': 4.728323699421965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '412219', 'n_tokens_mistral': 290, 'n_tokens_neox': 278, 'n_words': 65}