Remove unused methods

This commit is contained in:
Michael Miller 2021-01-16 17:07:07 -07:00
parent 57c9333c1f
commit a7ac170153
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -72,27 +72,9 @@ module Spectator
private def run_internal
group?.try(&.call_before_each(self))
run_test
group?.try(&.call_after_each(self))
end
private def run_before_hooks : Nil
return unless (parent = group?)
parent.call_once_before_all
parent.call_before_each(self)
end
private def run_after_hooks : Nil
return unless (parent = group?)
parent.call_after_each(self)
parent.call_once_after_all if parent.finished?
end
private def run_test : Nil
@entrypoint.call(self)
@finished = true
group?.try(&.call_after_each(self))
end
# Executes code within the example's test context.