From f548688882e2458fcaf478cc0214f00799da5d0f Mon Sep 17 00:00:00 2001 From: Aaron Spencer Date: Thu, 22 Jun 2023 14:26:26 +0100 Subject: [PATCH] CLDC-2545: lint and type removal. --- app/models/form/sales/questions/mortgageused.rb | 4 ++-- spec/models/form/sales/questions/mortgageused_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/form/sales/questions/mortgageused.rb b/app/models/form/sales/questions/mortgageused.rb index 33027ea85..e8f8d0e6b 100644 --- a/app/models/form/sales/questions/mortgageused.rb +++ b/app/models/form/sales/questions/mortgageused.rb @@ -17,8 +17,8 @@ class Form::Sales::Questions::Mortgageused < ::Form::Question }.freeze def displayed_answer_options(log, _user = nil) - if log.stairowned == 100 && - ANSWER_OPTIONS + if log.stairowned == 100 + ANSWER_OPTIONS else { "1" => { "value" => "Yes" }, diff --git a/spec/models/form/sales/questions/mortgageused_spec.rb b/spec/models/form/sales/questions/mortgageused_spec.rb index e2df7c65a..e423aaf80 100644 --- a/spec/models/form/sales/questions/mortgageused_spec.rb +++ b/spec/models/form/sales/questions/mortgageused_spec.rb @@ -48,7 +48,7 @@ RSpec.describe Form::Sales::Questions::Mortgageused, type: :model do expect(question.hint_text).to be_nil end - context "staircase owned percentage is 100%" do + context "when staircase owned percentage is 100%" do let(:log) { build(:sales_log, stairowned: 100) } it "show's the don't know option" do @@ -60,7 +60,7 @@ RSpec.describe Form::Sales::Questions::Mortgageused, type: :model do end end - context "staircase owned percentage is less than 100%" do + context "when staircase owned percentage is less than 100%" do let(:log) { build(:sales_log, stairowned: 99) } it "show's the don't know option" do