elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Minitest::Spec::DSL#register_spec_type
Register a new type of spec that matches the spec's description.
This method can take either a Regexp and a spec class or a spec
class and a block that takes the description and returns true if
it matches.
Eg:
register_spec_type(/Controller$/, Minitest::Spec::Rails)
or:
register_spec_type(Minitest::Spec::RailsModel) do |desc|
desc.superclass == ActiveRecord::Base
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--Spec--DSL-register_spec_type-for-pr
# Commit to gitgit add git commit -m "better docs for Minitest::Spec::DSL#register_spec_type"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Minitest--Spec--DSL-register_spec_type-for-pr
hub pull-request
# Celebrate!