Sha256: 39da6fbae18f01e5497b3c8579414faeddf77e2d4805dab3a778ffbf040c2c2a
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
require 'forwardable' module Bogus class MiniTestSyntax extend Takes extend Forwardable takes :context def_delegators :context, :before, :after def described_class return context.desc if context.desc.is_a?(Module) end def described_class=(value) context.instance_variable_set('@desc', value) end def after_suite(&block) # minitest 5 vs 4.7 if defined? Minitest.after_run Minitest.after_run(&block) else MiniTest::Unit.after_tests(&block) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.6 | lib/bogus/minitest/syntax.rb |
bogus-0.1.5 | lib/bogus/minitest/syntax.rb |
bogus-0.1.4 | lib/bogus/minitest/syntax.rb |