mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Merge branch 'patch-1' into 'master'
Make sure superclass isn't nil See merge request arctic-fox/spectator!27
This commit is contained in:
commit
7118fa7425
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module Spectator::Mocks
|
|||
""
|
||||
end.id
|
||||
original = if (name == :new.id && receiver == "self.".id) ||
|
||||
(t.superclass.has_method?(name) && !t.overrides?(t.superclass, name))
|
||||
(t.superclass && t.superclass.has_method?(name) && !t.overrides?(t.superclass, name))
|
||||
:super
|
||||
else
|
||||
:previous_def
|
||||
|
|
Loading…
Reference in a new issue