<commit_before># frozen_string_literal: true

require 'test_helper'

class RoutingTest < ActionDispatch::IntegrationTest
  include RouteTranslator::ConfigurationHelper

  def test_with_engine_inside_localized_block
    skip 'Regression with Rails 5.1.3. See #172'
    get '/engine_es'
    assert_response :success
    assert_equal '/blorgh/posts', response.body
  end

  def test_with_engine_outside_localized_block
    get '/engine'
    assert_response :success
    assert_equal '/blorgh/posts', response.body
  end
end<commit_msg>Change test as per Rails 5.1.3 change<commit_after># frozen_string_literal: true

require 'test_helper'

class RoutingTest < ActionDispatch::IntegrationTest
  include RouteTranslator::ConfigurationHelper

  def test_with_engine_inside_localized_block
    get '/engine_es'
    assert_response :success
    assert_equal '/es/blorgh/posts', response.body
  end

  def test_with_engine_outside_localized_block
    get '/engine'
    assert_response :success
    assert_equal '/blorgh/posts', response.body
  end
end
{'fraction_non_alphanumeric': 0.07005758157389635, 'fraction_numerical': 0.008637236084452975, 'mean_word_length': 4.859550561797753, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6321925', 'n_tokens_mistral': 331, 'n_tokens_neox': 316, 'n_words': 74}