<commit_before>ENV['RAILS_ENV'] ||= 'test'
require 'dotenv'
Dotenv.load

require 'simplecov'
SimpleCov.start 'rails'

require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'

require 'bitfields/rspec'

require 'sucker_punch/testing/inline'

require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist

require 'public_activity/testing'

PublicActivity.enabled = false

require 'shoulda-matchers'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }

# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
ActiveRecord::Migration.maintain_test_schema!

RSpec.configure do |config|
  config.fixture_path = "#{::Rails.root}/spec/fixtures"
  config.include Devise::TestHelpers, type: :controller
  config.infer_base_class_for_anonymous_controllers = true
  config.order                                      = 'random'
  config.tty                                        = true
  config.use_transactional_fixtures                 = true
  config.mock_with :rspec do |mocks|

    # This option should be set when all dependencies are being loaded
    # before a spec run, as is the case in a typical spec helper. It will
    # cause any verifying double instantiation for a class that does not
    # exist to raise, protecting against incorrectly spelt names.
    mocks.verify_doubled_constant_names = true

  end
end<commit_msg>Updated spec_helper with a configuration change to rspec<commit_after>ENV['RAILS_ENV'] ||= 'test'
require 'dotenv'
Dotenv.load

require 'simplecov'
SimpleCov.start 'rails'

require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'

require 'bitfields/rspec'

require 'sucker_punch/testing/inline'

require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist

require 'public_activity/testing'

PublicActivity.enabled = false

require 'shoulda-matchers'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }

# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
ActiveRecord::Migration.maintain_test_schema!

RSpec.configure do |config|
  config.fixture_path = "#{::Rails.root}/spec/fixtures"
  config.include Devise::TestHelpers, type: :controller
  config.infer_base_class_for_anonymous_controllers = true
  config.order                                      = 'random'
  config.tty                                        = true
  config.use_transactional_fixtures                 = true
end
{'fraction_non_alphanumeric': 0.09455292908530319, 'fraction_numerical': 0.0, 'mean_word_length': 3.717285945072698, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1833148', 'n_tokens_mistral': 874, 'n_tokens_neox': 860, 'n_words': 234}