<commit_before>require 'spec_helper'

RSpec.describe TransitionNote do
  def create_transition_note(params = {})
    TransitionNote.create!({
      educator_id: pals.west_counselor.id,
      student_id: pals.west_eighth_ryan.id,
      text: 'foo',
      is_restricted: false
    }.merge(params))
  end

  let!(:pals) { TestPals.create! }

  describe 'validations' do
    it 'requires presence of educator, student' do
      expect(create_transition_note({
        educator_id: nil,
        student_id: nil
      }).errors.details).to eq({
        student: [{error: :blank}],
        educator: [{error: :blank}]<commit_msg>Fix mistaken improvements<commit_after>require 'spec_helper'

RSpec.describe TransitionNote do
  let!(:pals) { TestPals.create! }

  def create_transition_note(params = {})
    TransitionNote.create({
      educator_id: pals.west_counselor.id,
      student_id: pals.west_eighth_ryan.id,
      text: 'foo',
      is_restricted: false
    }.merge(params))
  end

  describe 'validations' do
    it 'requires presence of educator, student' do
      expect(create_transition_note({
        educator_id: nil,
        student_id: nil
      }).errors.details).to eq({
        student: [{error: :blank}],
        educator: [{error: :blank}]
{'fraction_non_alphanumeric': 0.11872509960159362, 'fraction_numerical': 0.0, 'mean_word_length': 3.20066889632107, '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': '6183507', 'n_tokens_mistral': 420, 'n_tokens_neox': 393, 'n_words': 87}