elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Minitest::Test::LifecycleHooks#before_setup
Runs before every test, before setup. This hook is meant for
libraries to extend minitest. It is not meant to be used by
test developers.
As a simplistic example:
module MyMinitestPlugin
def before_setup
super
# ... stuff to do before setup is run
end
def after_setup
# ... stuff to do after setup is run
super
end
def before_teardown
super
# ... stuff to do before teardown is run
end
def after_teardown
# ... stuff to do after teardown is run
super
end
end
class MiniTest::Test
include MyMinitestPlugin
endEdit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Minitest--Test--LifecycleHooks-before_setup-for-pr
# Commit to gitgit add git commit -m "better docs for Minitest::Test::LifecycleHooks#before_setup"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Minitest--Test--LifecycleHooks-before_setup-for-pr
hub pull-request
# Celebrate!