Browse Source

feat: update routed_to? and tests

pull/2014/head
natdeanlewissoftwire 3 years ago
parent
commit
2249795dba
  1. 4
      app/models/form/sales/pages/uprn.rb
  2. 5
      spec/factories/lettings_log.rb

4
app/models/form/sales/pages/uprn.rb

@ -11,6 +11,10 @@ class Form::Sales::Pages::Uprn < ::Form::Page
] ]
end end
def routed_to?(log, _current_user)
true
end
def skip_text def skip_text
"Enter address instead" "Enter address instead"
end end

5
spec/factories/lettings_log.rb

@ -3,7 +3,10 @@ FactoryBot.define do
created_by { FactoryBot.create(:user) } created_by { FactoryBot.create(:user) }
owning_organisation { created_by.organisation } owning_organisation { created_by.organisation }
managing_organisation { created_by.organisation } managing_organisation { created_by.organisation }
created_at { Time.zone.today }
updated_at { Time.zone.today }
trait :setup_completed do trait :setup_completed do
startdate_today
renewal { 0 } renewal { 0 }
needstype { 1 } needstype { 1 }
rent_type { 1 } rent_type { 1 }
@ -206,7 +209,5 @@ FactoryBot.define do
illness_type_9 { false } illness_type_9 { false }
illness_type_10 { false } illness_type_10 { false }
end end
created_at { Time.zone.today }
updated_at { Time.zone.today }
end end
end end

Loading…
Cancel
Save