@ -16,6 +16,7 @@ class Form::Sales::Pages::PropertyLocalAuthority < ::Form::Page
def routed_to?(log, _current_user = nil)
return false if log.uprn_known.nil? && form.start_date.year >= 2023
return false if log.is_la_inferred?
true
end
@ -83,6 +83,16 @@ RSpec.describe Form::Sales::Pages::PropertyLocalAuthority, type: :model do
it "returns true" do
expect(page.routed_to?(log)).to eq(false)
context "when is_la_inferred: true" do
before do
allow(log).to receive(:is_la_inferred?).and_return(true)