<commit_before>require "rails_helper"

describe "renalware/patients/_header" do
  it "includes the correctly formatted NHS number" do
    patient = build(:patient, nhs_number: "1234567890")
    render partial: "renalware/patients/header", locals: { patient: patient }
    expect(rendered).to include("123 456 7890")<commit_msg>Add helpers to patient header view spec<commit_after>require "rails_helper"

describe "renalware/patients/_header" do
  helper(Renalware::ApplicationHelper, Renalware::PatientHelper)

  it "includes the correctly formatted NHS number" do
    patient = build(:patient, nhs_number: "1234567890")
    render partial: "renalware/patients/header", locals: { patient: patient }
    expect(rendered).to include("123 456 7890")
{'fraction_non_alphanumeric': 0.10589812332439678, 'fraction_numerical': 0.05361930294906166, 'mean_word_length': 5.790909090909091, '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': '1559923', 'n_tokens_mistral': 257, 'n_tokens_neox': 209, 'n_words': 61}