Fix namespaces preventing structs from being mocked

This commit is contained in:
Michael Miller 2021-01-30 21:11:51 -07:00
parent 0332b6eb3b
commit 0f44403053
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -79,11 +79,11 @@ module Spectator::Mocks
end
end
private def unique_key(reference : Reference)
private def unique_key(reference : ::Reference)
{reference.class.name, reference.object_id}
end
private def unique_key(value : Value)
private def unique_key(value : ::Value)
{value.class.name, value.hash}
end
end