Store example description

This commit is contained in:
Michael Miller 2018-09-11 15:57:18 -06:00
parent d8621fc43e
commit 84ed9c41b2
2 changed files with 6 additions and 1 deletions

View file

@ -94,6 +94,10 @@ module Spectator
def run
{{block.body}}
end
def description
{{description.stringify}}
end
end
{% if given_vars.empty? %}

View file

@ -11,6 +11,7 @@ module Spectator
expect(subject)
end
abstract def run
abstract def run : Nil
abstract def description : String
end
end