<commit_before>require 'spec_helper'

describe RailsEnv, '::ActionMailer' do
  before do
    Rails.env.on(:test) do
      config.action_mailer.default_url_options = {host: 'localhost', port: 3000}
      config.action_mailer.raise_delivery_errors = true
      config.action_mailer.delivery_method = :letter_opener
      config.time_zone = 'America/Sao_Paulo'
      config.i18n.available_locales = ['pt-BR']
      config.i18n.default_locale = 'pt-BR'
    end
  end

  it 'assigns extended environment' do
    Rails.env = 'test'
    expect(Rails.env).to respond_to(:on)
  end

  it 'sets url options' do
    expect(ActionMailer::Base.default_url_options).to include(host: 'localhost', port: 3000)
  end

  it 'sets raise option' do
    expect(ActionMailer::Base.raise_delivery_errors).to be_truthy
  end
<commit_msg>Change description to a more generic one.<commit_after>require 'spec_helper'

describe RailsEnv, 'config propagation' do
  before do
    Rails.env.on(:test) do
      config.action_mailer.default_url_options = {host: 'localhost', port: 3000}
      config.action_mailer.raise_delivery_errors = true
      config.action_mailer.delivery_method = :letter_opener
      config.time_zone = 'America/Sao_Paulo'
      config.i18n.available_locales = ['pt-BR']
      config.i18n.default_locale = 'pt-BR'
    end
  end

  it 'assigns extended environment' do
    Rails.env = 'test'
    expect(Rails.env).to respond_to(:on)
  end

  it 'sets url options' do
    expect(ActionMailer::Base.default_url_options).to include(host: 'localhost', port: 3000)
  end

  it 'sets raise option' do
    expect(ActionMailer::Base.raise_delivery_errors).to be_truthy
  end

{'fraction_non_alphanumeric': 0.10434258142340169, 'fraction_numerical': 0.014475271411338963, 'mean_word_length': 3.865102639296188, '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': '1157410', 'n_tokens_mistral': 590, 'n_tokens_neox': 558, 'n_words': 119}