<commit_before>describe ActivePstore::Generators::ConfigGenerator, type: :generator do
  destination File.expand_path('../../../../../../tmp', __FILE__)

  before(:all) do
    prepare_destination
    run_generator
  end

  it 'creates a active_pstore config' do
    assert_file 'config/active_pstore.yml', <<-EOS
#
#   Ensure the Active PStore gem is defined in your Gemfile
#   gem 'active_pstore'
#
default: &default

development:
  <<: *default
  database: db/active_pstore_development.yml

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
  database: db/active_pstore_test.yml

production:
  <<: *default
  database: db/active_pstore_production.yml
    EOS
  end
end<commit_msg>remain just the same as contents of template file :lipstick:<commit_after>describe ActivePstore::Generators::ConfigGenerator, type: :generator do
  destination File.expand_path('../../../../../../tmp', __FILE__)

  let(:config_file) { File.read('lib/rails/generators/active_pstore/config/templates/active_pstore.yml') }

  before(:all) do
    prepare_destination
    run_generator
  end

  it 'creates a active_pstore config' do
    assert_file 'config/active_pstore.yml', config_file
  end
end
{'fraction_non_alphanumeric': 0.11426437640029873, 'fraction_numerical': 0.0, 'mean_word_length': 4.114503816793893, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1792989', 'n_tokens_mistral': 422, 'n_tokens_neox': 404, 'n_words': 116}