<commit_before>require 'minitest/autorun'

describe 'private_attr/everywhere' do
  # these particular tests must be ran in order
  def self.test_order
    :alpha
  end

  it 'requiring only private_attr keeps Classes and Modules intact' do
    require 'private_attr'
    -> { class  Cla; private_attr_reader :priv; end }.must_raise NoMethodError
    -> { module Mod; private_attr_reader :priv; end }.must_raise NoMethodError
  end

  it 'requiring private_attr/everywhere adds it to all Classes and Modules' do
    require 'private_attr/everywhere'
    class  Cla; private_attr_reader :priv; end
    module Mod; private_attr_reader :priv; end
  end
end<commit_msg>Switch to better private_attr/everywhere test assertions<commit_after>require 'minitest/autorun'

describe 'private_attr/everywhere' do
  # these particular tests must be ran in order
  def self.test_order
    :alpha
  end

  it 'requiring only private_attr keeps Classes and Modules intact' do
    require 'private_attr'
    Class.new.private_methods.wont_include :private_attr_reader
    Module.new.private_methods.wont_include :private_attr_reader
  end

  it 'requiring private_attr/everywhere adds it to all Classes and Modules' do
    require 'private_attr/everywhere'
    Class.new.private_methods.must_include :private_attr_reader
    Module.new.private_methods.must_include :private_attr_reader
  end
end
{'fraction_non_alphanumeric': 0.06027596223674655, 'fraction_numerical': 0.0, 'mean_word_length': 4.49003984063745, 'pattern_counts': {'":': 0, '<': 3, '<?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': '957680', 'n_tokens_mistral': 424, 'n_tokens_neox': 412, 'n_words': 126}