From 24476d72087844d52c28672965efb5ca1a3bf519 Mon Sep 17 00:00:00 2001 From: Aaron Spencer Date: Thu, 29 Jun 2023 15:34:36 +0100 Subject: [PATCH] CLDC-2439: string as var in test --- spec/helpers/interruption_screen_helper_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/helpers/interruption_screen_helper_spec.rb b/spec/helpers/interruption_screen_helper_spec.rb index a483a069a..a100cf3ad 100644 --- a/spec/helpers/interruption_screen_helper_spec.rb +++ b/spec/helpers/interruption_screen_helper_spec.rb @@ -166,7 +166,8 @@ RSpec.describe InterruptionScreenHelper do context "when a string given" do it "returns the string" do - expect(display_informative_text("some words", lettings_log)).to eq("some words") + test_string = "some words" + expect(display_informative_text(test_string, lettings_log)).to eq(test_string) end end end