Skip to content

Commit

Permalink
Ignore coverage of warn line.
Browse files Browse the repository at this point in the history
For some reason simplecov can't catch it occasionally.
  • Loading branch information
tpendragon committed Jan 9, 2020
1 parent e11cc4d commit b5ff5ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/valkyrie/id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5ff5ca

Please sign in to comment.