From d067a23b120b734a0deecccb60182515bf931598 Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Mon, 3 Jun 2024 14:28:59 +0100 Subject: [PATCH] linting fix --- spec/mailers/teacher_mailer_spec.rb | 12 ++++++------ spec/system/teacher_interface/submitting_spec.rb | 4 +--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/spec/mailers/teacher_mailer_spec.rb b/spec/mailers/teacher_mailer_spec.rb index cfa046051..28380c483 100644 --- a/spec/mailers/teacher_mailer_spec.rb +++ b/spec/mailers/teacher_mailer_spec.rb @@ -207,7 +207,11 @@ ) end - it { is_expected.to include("Your QTS application: Awaiting Letter of Professional Standing") } + it do + is_expected.to include( + "Your QTS application: Awaiting Letter of Professional Standing", + ) + end end context "if the teaching authority does not provide the written statement" do @@ -219,11 +223,7 @@ ) end - it do - is_expected.to include( - "Your QTS application has been received", - ) - end + it { is_expected.to include("Your QTS application has been received") } end end diff --git a/spec/system/teacher_interface/submitting_spec.rb b/spec/system/teacher_interface/submitting_spec.rb index f8feb4aee..a10157533 100644 --- a/spec/system/teacher_interface/submitting_spec.rb +++ b/spec/system/teacher_interface/submitting_spec.rb @@ -58,9 +58,7 @@ def and_i_receive_an_application_email message = ActionMailer::Base.deliveries.last expect(message).to_not be_nil - expect(message.subject).to eq( - "Your QTS application has been received", - ) + expect(message.subject).to eq("Your QTS application has been received") expect(message.to).to include("teacher@example.com") end