Sha256: bac47fb2bd49dd6278f251abb514b08d21187f34d7a63e7189b7c15cadc2bc84

Contents?: true

Size: 1.3 KB

Versions: 9

Compression:

Stored size: 1.3 KB

Contents

%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:
  #
  # https://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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rbs-3.9.0 stdlib/minitest/0/kernel.rbs
rbs-3.9.0.pre.2 stdlib/minitest/0/kernel.rbs
rbs-3.9.0.pre.1 stdlib/minitest/0/kernel.rbs
rbs-3.9.0.dev.1 stdlib/minitest/0/kernel.rbs
rbs-relaxed-3.9.0.1 stdlib/minitest/0/kernel.rbs
rbs-3.8.1 stdlib/minitest/0/kernel.rbs
rbs-3.8.0 stdlib/minitest/0/kernel.rbs
rbs-3.8.0.pre.1 stdlib/minitest/0/kernel.rbs
rbs-3.7.0.pre.1 stdlib/minitest/0/kernel.rbs