<commit_before>require 'simplecov'
require 'codeclimate-test-reporter'

## Configure SimpleCov
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
  SimpleCov::Formatter::HTMLFormatter,
  CodeClimate::TestReporter::Formatter
])

SimpleCov.start 'rails' do
  add_filter do |source_file|
    source_file.filename.to_s == File.expand_path('../../lib/active_use_case/version.rb', __FILE__).to_s
  end
end

ENV['RAILS_ENV'] ||= 'test'
require 'spec_helper'
require File.expand_path('../../spec/dummy/config/environment', __FILE__)
require 'rspec/rails'
require 'factory_girl_rails'
require 'database_cleaner'

## Configure RSpec
RSpec.configure do |config|
  # Include standard helpers
  config.include FactoryGirl::Syntax::Methods

  config.color = true
  config.fail_fast = false

  config.infer_spec_type_from_file_location!

  config.use_transactional_fixtures = true

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.before(:suite) do
    # FactoryGirl.lint
    DatabaseCleaner.clean_with(:truncation)
  end<commit_msg>Fix tests<commit_after>require 'simplecov'
require 'codeclimate-test-reporter'

## Configure SimpleCov
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
  SimpleCov::Formatter::HTMLFormatter,
  CodeClimate::TestReporter::Formatter
])

SimpleCov.start 'rails' do
  add_filter do |source_file|
    source_file.filename.to_s == File.expand_path('../../lib/active_use_case/version.rb', __FILE__).to_s
  end
end

ENV['RAILS_ENV'] ||= 'test'
require 'spec_helper'
require File.expand_path('../../spec/dummy/config/environment', __FILE__)
require 'rspec/rails'
require 'factory_girl_rails'
require 'database_cleaner'

ActiveRecord::Migration.maintain_test_schema!

## Configure RSpec
RSpec.configure do |config|
  # Include standard helpers
  config.include FactoryGirl::Syntax::Methods

  config.color = true
  config.fail_fast = false

  config.infer_spec_type_from_file_location!

  config.use_transactional_fixtures = true

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.before(:suite) do
    # FactoryGirl.lint
    DatabaseCleaner.clean_with(:truncation)
  end
{'fraction_non_alphanumeric': 0.1177561427909133, 'fraction_numerical': 0.0, 'mean_word_length': 5.3657817109144545, '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': '1638520', 'n_tokens_mistral': 733, 'n_tokens_neox': 702, 'n_words': 127}