Browse Source

typo

pull/1584/head
Kat 3 years ago
parent
commit
9d005f6845
  1. 2
      app/models/form/sales/pages/person_student_not_child_value_check.rb
  2. 2
      app/models/form/sales/pages/retirement_value_check.rb
  3. 12
      spec/models/form/sales/pages/person_student_not_child_value_check_spec.rb
  4. 12
      spec/models/form/sales/pages/retirement_value_check_spec.rb

2
app/models/form/sales/pages/person_student_not_child_value_check.rb

@ -20,6 +20,6 @@ class Form::Sales::Pages::PersonStudentNotChildValueCheck < Form::Sales::Pages::
end
def interruption_screen_question_ids
["relat#{@person_index}", "exstat#{@person_index}", "age#{@person_index}"]
["relat#{@person_index}", "ecstat#{@person_index}", "age#{@person_index}"]
end
end

2
app/models/form/sales/pages/retirement_value_check.rb

@ -41,6 +41,6 @@ class Form::Sales::Pages::RetirementValueCheck < Form::Sales::Pages::Person
end
def interruption_screen_question_ids
["age#{@person_index}", "exstat#{@person_index}", "sex#{@person_index}"]
["age#{@person_index}", "ecstat#{@person_index}", "sex#{@person_index}"]
end
end

12
spec/models/form/sales/pages/person_student_not_child_value_check_spec.rb

@ -40,7 +40,7 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[relat2 exstat2 age2])
expect(page.interruption_screen_question_ids).to eq(%w[relat2 ecstat2 age2])
end
context "with person 2" do
@ -56,7 +56,7 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[relat2 exstat2 age2])
expect(page.interruption_screen_question_ids).to eq(%w[relat2 ecstat2 age2])
end
end
@ -73,7 +73,7 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[relat3 exstat3 age3])
expect(page.interruption_screen_question_ids).to eq(%w[relat3 ecstat3 age3])
end
end
@ -90,7 +90,7 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[relat4 exstat4 age4])
expect(page.interruption_screen_question_ids).to eq(%w[relat4 ecstat4 age4])
end
end
@ -107,7 +107,7 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[relat5 exstat5 age5])
expect(page.interruption_screen_question_ids).to eq(%w[relat5 ecstat5 age5])
end
end
@ -124,7 +124,7 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[relat6 exstat6 age6])
expect(page.interruption_screen_question_ids).to eq(%w[relat6 ecstat6 age6])
end
end
end

12
spec/models/form/sales/pages/retirement_value_check_spec.rb

@ -73,7 +73,7 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[age1 exstat1 sex1])
expect(page.interruption_screen_question_ids).to eq(%w[age1 ecstat1 sex1])
end
end
@ -125,7 +125,7 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[age2 exstat2 sex2])
expect(page.interruption_screen_question_ids).to eq(%w[age2 ecstat2 sex2])
end
end
@ -177,7 +177,7 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[age3 exstat3 sex3])
expect(page.interruption_screen_question_ids).to eq(%w[age3 ecstat3 sex3])
end
end
@ -229,7 +229,7 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[age4 exstat4 sex4])
expect(page.interruption_screen_question_ids).to eq(%w[age4 ecstat4 sex4])
end
end
@ -281,7 +281,7 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[age5 exstat5 sex5])
expect(page.interruption_screen_question_ids).to eq(%w[age5 ecstat5 sex5])
end
end
@ -333,7 +333,7 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
end
it "has correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[age6 exstat6 sex6])
expect(page.interruption_screen_question_ids).to eq(%w[age6 ecstat6 sex6])
end
end
end

Loading…
Cancel
Save