Browse Source

CLDC-2454: lint and type removal.

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

2
app/models/form/sales/questions/mortgageused.rb

@ -17,7 +17,7 @@ class Form::Sales::Questions::Mortgageused < ::Form::Question
}.freeze }.freeze
def displayed_answer_options(log, _user = nil) def displayed_answer_options(log, _user = nil)
if log.stairowned == 100 && if log.stairowned == 100
ANSWER_OPTIONS ANSWER_OPTIONS
else else
{ {

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 expect(question.hint_text).to be_nil
end end
context "staircase owned percentage is 100%" do context "when staircase owned percentage is 100%" do
let(:log) { build(:sales_log, stairowned: 100) } let(:log) { build(:sales_log, stairowned: 100) }
it "show's the don't know option" do it "show's the don't know option" do
@ -60,7 +60,7 @@ RSpec.describe Form::Sales::Questions::Mortgageused, type: :model do
end end
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) } let(:log) { build(:sales_log, stairowned: 99) }
it "show's the don't know option" do it "show's the don't know option" do

Loading…
Cancel
Save