<commit_before># encoding: utf-8

require 'test_helper'

class NavegacionTest < ActiveSupport::TestCase
  should validate_presence_of(:pagina_id)
  should allow_mass_assignment_of(:pagina_id)
  should validate_presence_of(:orden)
  should allow_mass_assignment_of(:orden)

  should belong_to(:pagina)

  setup do
    @paginas = [Factory(:pagina), Factory(:pagina), Factory(:pagina)]
    @ids = @paginas.map(&:id)
    Navegacion.establecer(@ids.reverse)
  end
<commit_msg>Nos aseguramos de que no todas las páginas se recuperan al recuperar la navegación.<commit_after># encoding: utf-8

require 'test_helper'

class NavegacionTest < ActiveSupport::TestCase
  should validate_presence_of(:pagina_id)
  should allow_mass_assignment_of(:pagina_id)
  should validate_presence_of(:orden)
  should allow_mass_assignment_of(:orden)

  should belong_to(:pagina)

  setup do
    @paginas = [Factory(:pagina), Factory(:pagina), Factory(:pagina)]
    otras = [Factory(:pagina), Factory(:pagina), Factory(:pagina)]
    @ids = @paginas.map(&:id)
    Navegacion.establecer(@ids.reverse)
  end

{'fraction_non_alphanumeric': 0.11399443929564411, 'fraction_numerical': 0.0018535681186283596, 'mean_word_length': 6.012987012987013, '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': '7561886', 'n_tokens_mistral': 374, 'n_tokens_neox': 375, 'n_words': 73}