From b5ff5ca62846b10d5e743f4c78ba11af8aabbdc9 Mon Sep 17 00:00:00 2001 From: Trey Pendragon Date: Thu, 9 Jan 2020 11:54:15 -0800 Subject: [PATCH] Ignore coverage of warn line. For some reason simplecov can't catch it occasionally. --- lib/valkyrie/id.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/valkyrie/id.rb b/lib/valkyrie/id.rb index bf3395692..204b6abdd 100644 --- a/lib/valkyrie/id.rb +++ b/lib/valkyrie/id.rb @@ -28,8 +28,10 @@ def default_equality(other) output = (other.class == self.class && other.state == state) return output if output == true if output == false && string_equality(other) && Valkyrie.config.id_string_equality.nil? + # :nocov: warn "[DEPRECATION] Valkyrie::IDs will always be equal to their string counterparts in 3.0.0. " \ "To silence this message, please either compare IDs or set Valkyrie.config.id_string_equality = true." + # :nocov: end false end