From a47911f901c147346db8d06c97ea155ec46b3749 Mon Sep 17 00:00:00 2001 From: JG Date: Tue, 26 Jul 2022 10:49:11 +0100 Subject: [PATCH] redundant tests --- app/models/case_log.rb | 8 -------- spec/models/case_log_spec.rb | 4 ---- 2 files changed, 12 deletions(-) diff --git a/app/models/case_log.rb b/app/models/case_log.rb index f35cec3be..e23d12f03 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -110,14 +110,6 @@ class CaseLog < ApplicationRecord end end - def location_admin_district - if location - location.location_admin_district - else - super - end - end - def postcode_full if location location.postcode diff --git a/spec/models/case_log_spec.rb b/spec/models/case_log_spec.rb index 635982e4f..9ffb03eae 100644 --- a/spec/models/case_log_spec.rb +++ b/spec/models/case_log_spec.rb @@ -1685,10 +1685,6 @@ RSpec.describe CaseLog do expect(record_from_db["location_id"]).to eq(location.id) expect(case_log["location_id"]).to eq(location.id) end - - it "derives location_admin_district" do - expect(case_log.location_admin_district).to eq(location.location_admin_district) - end end context "and not renewal" do