-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1009 from ksss/minitest
Add Minitest to stdlib
- Loading branch information
Showing
39 changed files
with
3,045 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependencies: | ||
- name: mutex_m |
Oops, something went wrong.