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