mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix namespaces preventing structs from being mocked
This commit is contained in:
parent
0332b6eb3b
commit
0f44403053
1 changed files with 2 additions and 2 deletions
|
@ -79,11 +79,11 @@ module Spectator::Mocks
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private def unique_key(reference : Reference)
|
private def unique_key(reference : ::Reference)
|
||||||
{reference.class.name, reference.object_id}
|
{reference.class.name, reference.object_id}
|
||||||
end
|
end
|
||||||
|
|
||||||
private def unique_key(value : Value)
|
private def unique_key(value : ::Value)
|
||||||
{value.class.name, value.hash}
|
{value.class.name, value.hash}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue