<commit_before>describe AssignTo, type: :model do
  describe '#procedure_presentation_or_default' do
    let(:procedure) { create(:procedure) }
    let(:assign_to) { AssignTo.create(procedure: procedure) }

    let(:procedure_presentation_or_default) { assign_to.procedure_presentation_or_default }

    context "without a procedure_presentation" do
      it { expect(procedure_presentation_or_default.persisted?).to be_falsey }
    end

    context "with a procedure_presentation" do
      let!(:procedure_presentation) { ProcedurePresentation.create(assign_to: assign_to) }

      it { expect(procedure_presentation_or_default).to eq(procedure_presentation) }
    end
  end
end
<commit_msg>[#2604] Clean up AssignTo spec<commit_after>describe AssignTo, type: :model do
  describe '#procedure_presentation_or_default' do
    let(:procedure) { create(:procedure) }
    let(:assign_to) { AssignTo.create(procedure: procedure) }

    let(:procedure_presentation_or_default) { assign_to.procedure_presentation_or_default }

    context "without a procedure_presentation" do
      it { expect(procedure_presentation_or_default).not_to be_persisted }
    end

    context "with a procedure_presentation" do
      let!(:procedure_presentation) { ProcedurePresentation.create(assign_to: assign_to) }

      it { expect(procedure_presentation_or_default).to eq(procedure_presentation) }
    end
  end
end

{'fraction_non_alphanumeric': 0.08661417322834646, 'fraction_numerical': 0.002863278453829635, 'mean_word_length': 5.241071428571429, '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': '5083313', 'n_tokens_mistral': 447, 'n_tokens_neox': 392, 'n_words': 80}