<commit_before>require 'spec_helper'

describe Relation::Aliases::AttributeIndex, '.build' do
  subject { described_class.build(relation_name, attribute_set, strategy_class) }

  let(:relation_name)   { :users }
  let(:attribute_set)   { AttributeSet.new << mock_attribute(:id, Integer) }
  let(:strategy_class)  { mock }
  let(:initial_entries) { { attribute_alias(:id, :users) => attribute_alias(:id, :users) } }

  it { should eql(described_class.new(initial_entries, strategy_class)) }
end<commit_msg>Fix specs for Relation::Aliases::AttributeIndex.build<commit_after>require 'spec_helper'

describe Relation::Aliases::AttributeIndex, '.build' do
  subject { described_class.build(relation_name, attribute_set, strategy_class) }

  let(:relation_name)       { :users }
  let(:attribute_set)       { AttributeSet.new << primitive_attribute << custom_attribute }
  let(:primitive_attribute) { mock_attribute(:id,   Integer) }
  let(:custom_attribute)    { mock_attribute(:name, mock)  }
  let(:strategy_class)      { mock }
  let(:initial_entries)     { { attribute_alias(:id, :users) => attribute_alias(:id, :users) } }

  it { should eql(described_class.new(initial_entries, strategy_class)) }
end
{'fraction_non_alphanumeric': 0.1340549542048293, 'fraction_numerical': 0.0, 'mean_word_length': 5.829545454545454, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '3440214', 'n_tokens_mistral': 380, 'n_tokens_neox': 370, 'n_words': 64}