Sha256: cf0d29aa74c01da6207f0aa309b95eeb7e1b01bc2364defdd501bd37ac33772b
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
require "micron/test_case/assertions" require "micron/test_case/lifecycle_hooks" module Micron class TestCase include LifecycleHooks include Assertions # Run before all test methods in the class def self.before_class end # Run after all test methods in the class def self.after_class end # Run before each test method def setup end # Run after each test method def teardown end # retrieve all loaded subclasses of this class # # @return [Array<Class>] List of subclasses def self.subclasses @subclasses end def self.inherited(subclass) if superclass.respond_to? :inherited superclass.inherited(subclass) end @subclasses ||= [] @subclasses << subclass end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
micron-0.5.1 | lib/micron/test_case.rb |