diff --git a/lib/sus/base.rb b/lib/sus/base.rb index 15491d9..d752c85 100644 --- a/lib/sus/base.rb +++ b/lib/sus/base.rb @@ -22,10 +22,15 @@ def before def after end - def around + # Wrap logic around the test being executed. + # + # Invokes the before hook, then the block, then the after hook. + # + # @yields {...} the block which should execute a test. + def around(&block) self.before - return yield + return block.call ensure self.after end diff --git a/media/logo.png b/media/logo.png new file mode 100644 index 0000000..6451a02 Binary files /dev/null and b/media/logo.png differ