Browse Source

CLDC-1487 Do not show duplicate page header (#1180)

if identical to question header
pull/1177/head
Jack 2 years ago committed by GitHub
parent
commit
7fc3a7aeb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/models/form/sales/pages/buyer1_previous_tenure.rb
  2. 2
      spec/models/form/sales/pages/buyer1_previous_tenure_spec.rb

1
app/models/form/sales/pages/buyer1_previous_tenure.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1PreviousTenure < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer1_previous_tenure" @id = "buyer1_previous_tenure"
@header = "What was buyer 1's previous tenure?"
end end
def questions def questions

2
spec/models/form/sales/pages/buyer1_previous_tenure_spec.rb

@ -20,6 +20,6 @@ RSpec.describe Form::Sales::Pages::Buyer1PreviousTenure, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("What was buyer 1's previous tenure?") expect(page.header).to be_nil
end end
end end

Loading…
Cancel
Save