<commit_before>require 'simplecov'
SimpleCov.start "rails"

ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require "email_spec"
require 'capybara/poltergeist'
require_relative 'helpers'

Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

DatabaseCleaner.strategy = :truncation

RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = false
  config.infer_base_class_for_anonymous_controllers = false
  config.after :each do
    Capybara.reset_sessions!
    DatabaseCleaner.clean
  end
  config.include Helpers
  config.include(EmailSpec::Helpers)
  config.include(EmailSpec::Matchers)
  config.include Devise::TestHelpers, type: :controller
end

Capybara.register_driver :poltergeist do |app|
    options = {<commit_msg>Hopeful fix for the test db in travis<commit_after>require 'simplecov'
SimpleCov.start "rails"

ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require "email_spec"
require 'capybara/poltergeist'
require_relative 'helpers'

ActiveRecord::Migration.maintain_test_schema!

Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

DatabaseCleaner.strategy = :truncation

RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = false
  config.infer_base_class_for_anonymous_controllers = false
  config.after :each do
    Capybara.reset_sessions!
    DatabaseCleaner.clean
  end
  config.include Helpers
  config.include(EmailSpec::Helpers)
  config.include(EmailSpec::Matchers)
  config.include Devise::TestHelpers, type: :controller
end

Capybara.register_driver :poltergeist do |app|
    options = {
{'fraction_non_alphanumeric': 0.11673151750972763, 'fraction_numerical': 0.0, 'mean_word_length': 5.741573033707865, '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': '6676248', 'n_tokens_mistral': 608, 'n_tokens_neox': 606, 'n_words': 116}