Browse Source

tenancycode id

pull/682/head
baarkerlounger 3 years ago
parent
commit
24b936ae53
  1. 2
      app/models/form/setup/questions/tenant_code.rb
  2. 2
      spec/models/form/setup/pages/tenant_code_spec.rb
  3. 2
      spec/models/form/setup/questions/tenant_code_spec.rb

2
app/models/form/setup/questions/tenant_code.rb

@ -1,7 +1,7 @@
class Form::Setup::Questions::TenantCode < ::Form::Question
def initialize(id, hsh, page)
super
@id = "tenancy_code"
@id = "tenancycode"
@check_answer_label = "Tenant code"
@header = "What is the tenant code?"
@hint_text = "This is how you usually refer to this tenancy on your own systems."

2
spec/models/form/setup/pages/tenant_code_spec.rb

@ -12,7 +12,7 @@ RSpec.describe Form::Setup::Pages::TenantCode, type: :model do
end
it "has correct questions" do
expect(page.questions.map(&:id)).to eq(%w[tenancy_code])
expect(page.questions.map(&:id)).to eq(%w[tenancycode])
end
it "has the correct id" do

2
spec/models/form/setup/questions/tenant_code_spec.rb

@ -12,7 +12,7 @@ RSpec.describe Form::Setup::Questions::TenantCode, type: :model do
end
it "has the correct id" do
expect(question.id).to eq("tenancy_code")
expect(question.id).to eq("tenancycode")
end
it "has the correct header" do

Loading…
Cancel
Save