Sha256: 1299ec8db7b0cb82829da55acb3acec83908b25a2e163253c6a4b955d8b8f1cd
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
module BlueprintsBoy::MinitestHelper def before_setup super BlueprintsBoy.manager.setup(self) end def after_teardown super BlueprintsBoy.manager.teardown end module ClassMethods def build(*args) before do build(*args) end end end end MiniTest::Unit::TestCase.send :include, BlueprintsBoy::Helper, BlueprintsBoy::MinitestHelper if defined?(MiniTest::Unit::TestCase) MiniTest::Test.send :include, BlueprintsBoy::Helper, BlueprintsBoy::MinitestHelper if defined?(MiniTest::Test) MiniTest::Spec.send :extend, BlueprintsBoy::MinitestHelper::ClassMethods if defined?(MiniTest::Spec)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blueprints_boy-1.0.0 | lib/blueprints_boy/integration/minitest.rb |