Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Minitest to stdlib #1009

Merged
merged 6 commits into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions stdlib/minitest/0/kernel.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
%a{annotate:rdoc:skip}
module Kernel : ::BasicObject
# <!--
# rdoc-file=lib/minitest/spec.rb
# - describe(desc, *additional_desc, &block)
# -->
# Describe a series of expectations for a given target `desc`.
#
# Defines a test class subclassing from either Minitest::Spec or from the
# surrounding describe's class. The surrounding class may subclass
# Minitest::Spec manually in order to easily share code:
#
# class MySpec < Minitest::Spec
# # ... shared code ...
# end
#
# class TestStuff < MySpec
# it "does stuff" do
# # shared code available here
# end
# describe "inner stuff" do
# it "still does stuff" do
# # ...and here
# end
# end
# end
#
# For more information on getting started with writing specs, see:
#
# http://www.rubyinside.com/a-minitestspec-tutorial-elegant-spec-style-testing-t
# hat-comes-with-ruby-5354.html
#
# For some suggestions on how to improve your specs, try:
#
# http://betterspecs.org
#
# but do note that several items there are debatable or specific to rspec.
#
# For more information about expectations, see Minitest::Expectations.
#
private def describe: (untyped desc, *untyped additional_desc) ?{ () -> untyped } -> untyped
end
2 changes: 2 additions & 0 deletions stdlib/minitest/0/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dependencies:
- name: mutex_m
Loading