From 74b5f79cd2d11578ed1b8b5f92ef8ce6808589f6 Mon Sep 17 00:00:00 2001 From: Manny Dinssa Date: Mon, 8 Jul 2024 10:35:26 +0100 Subject: [PATCH] Correct syntax offences --- app/models/lettings_log.rb | 1 - spec/helpers/question_view_helper_spec.rb | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/models/lettings_log.rb b/app/models/lettings_log.rb index 19c62576d..82f04512d 100644 --- a/app/models/lettings_log.rb +++ b/app/models/lettings_log.rb @@ -885,5 +885,4 @@ private uprn_selection_changed? || startdate_changed? end end - end diff --git a/spec/helpers/question_view_helper_spec.rb b/spec/helpers/question_view_helper_spec.rb index 3ccaa57df..cf45a94be 100644 --- a/spec/helpers/question_view_helper_spec.rb +++ b/spec/helpers/question_view_helper_spec.rb @@ -117,7 +117,7 @@ RSpec.describe QuestionViewHelper do describe "select_option_name" do context "when value is a location" do - let(:value) { build(:location)} + let(:value) { build(:location) } it "returns the location's postcode" do expect(select_option_name(value)).to eq(value.postcode) @@ -133,7 +133,7 @@ RSpec.describe QuestionViewHelper do end context "when value responds to service_name" do - let(:value) { build(:scheme)} + let(:value) { build(:scheme) } it "returns the value of the service_name method" do expect(select_option_name(value)).to eq(value.service_name) @@ -143,7 +143,7 @@ RSpec.describe QuestionViewHelper do describe "answer_option_hint" do context "when not a scheme or location" do - let(:resource) { { "value" => "not a scheme or location" }} + let(:resource) { { "value" => "not a scheme or location" } } it "returns nil" do expect(answer_option_hint(resource)).to be_nil