mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Make sure superclass isn't nil
This commit is contained in:
parent
ce4fefaab2
commit
e53b1167b3
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module Spectator::Mocks
|
||||||
""
|
""
|
||||||
end.id
|
end.id
|
||||||
original = if (name == :new.id && receiver == "self.".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
|
:super
|
||||||
else
|
else
|
||||||
:previous_def
|
:previous_def
|
||||||
|
|
Loading…
Reference in a new issue