From 4e0d8d0be3d01fa198009ed4716e910c320a11c6 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 14 May 2024 16:50:20 +0100 Subject: [PATCH] Refactor tests #1 --- .../check_answers_summary_list_card_component_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/check_answers_summary_list_card_component_spec.rb b/spec/components/check_answers_summary_list_card_component_spec.rb index 0390530c6..241f1e547 100644 --- a/spec/components/check_answers_summary_list_card_component_spec.rb +++ b/spec/components/check_answers_summary_list_card_component_spec.rb @@ -61,7 +61,7 @@ RSpec.describe CheckAnswersSummaryListCardComponent, type: :component do context "when before 23/24 collection" do context "when given a set of questions" do - let(:log) { build(:lettings_log, :completed, age2: 99, startdate: Time.zone.local(2021, 5, 1), assigned_to: create(:user)) } + let(:log) { build(:lettings_log, :completed, age2: 99, startdate: Time.zone.local(2021, 5, 1)) } it "renders a summary list card without question numbers for the answers to those questions" do expect(rendered).to have_content(questions.first.answer_label(log))