<commit_before>require 'rspectacular'

describe ProgressBar::Format::Molecule do
  describe '#new' do
    before { @molecule = ProgressBar::Format::Molecule.new('t') }

    it 'sets the key when initialized' do
      expect(@molecule.key).to eql 't'
    end

    it 'sets the method name when initialized' do
      expect(@molecule.method_name).to eql [:title_comp, :title]
    end
  end

  describe '#bar_molecule?' do
    it "is true if the molecule's key is a representation of the progress bar graphic" do
      molecule = ProgressBar::Format::Molecule.new('B')
      expect(molecule).to be_bar_molecule
    end
  end
end<commit_msg>Refactor: Update tests for 'Molecule' to the new format<commit_after>require 'rspectacular'
require 'ruby-progressbar/format/molecule'

class     ProgressBar
module    Format
describe  Molecule do
  it 'sets the key when initialized' do
    molecule = Molecule.new('t')

    expect(molecule.key).to eql 't'
  end

  it 'sets the method name when initialized' do
    molecule = Molecule.new('t')

    expect(molecule.method_name).to eql [:title_comp, :title]
  end

  it 'can retrieve the full key for itself' do
    molecule = Molecule.new('t')

    expect(molecule.full_key).to eql '%t'
  end

  it 'can determine if it is a bar molecule' do
    expect(Molecule.new('B')).to be_bar_molecule
  end
end
end
end
{'fraction_non_alphanumeric': 0.10029717682020803, 'fraction_numerical': 0.0, 'mean_word_length': 3.6448275862068966, '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': '6193117', 'n_tokens_mistral': 462, 'n_tokens_neox': 427, 'n_words': 139}