Browse Source

CLDC-2454: lint and type removal.

CLDC-2454-add-q90-based-on-q78
Aaron Spencer 2 years ago
parent
commit
a108a5c910
  1. 4
      app/models/form/sales/questions/mortgageused.rb
  2. 4
      spec/models/form/sales/questions/mortgageused_spec.rb

4
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" },

4
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

Loading…
Cancel
Save