vigiles 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.ruby-version +1 -0
  4. data/lib/generators/vigiles/initializer_generator.rb +1 -1
  5. data/lib/generators/vigiles/install_generator.rb +1 -1
  6. data/lib/generators/vigiles/migration_generator.rb +2 -1
  7. data/lib/vigiles/archive/extras.rb +1 -1
  8. data/lib/vigiles/archive/metadata.rb +1 -1
  9. data/lib/vigiles/archive/response.rb +31 -5
  10. data/lib/vigiles/archive.rb +1 -1
  11. data/lib/vigiles/constants.rb +161 -1
  12. data/lib/vigiles/conversation_recorder.rb +3 -0
  13. data/lib/vigiles/conversation_recorders/application_json.rb +11 -6
  14. data/lib/vigiles/conversation_recorders/unknown.rb +3 -0
  15. data/lib/vigiles/middleware/record_conversation.rb +2 -2
  16. data/lib/vigiles/options.rb +1 -0
  17. data/lib/vigiles/types.rb +6 -0
  18. data/lib/vigiles/utilities/http.rb +60 -0
  19. data/lib/vigiles/utilities/json.rb +3 -2
  20. data/lib/vigiles/version.rb +1 -1
  21. data/lib/vigiles.rb +15 -3
  22. data/sorbet/rbi/gems/concurrent-ruby@1.3.1.rbi +11627 -0
  23. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +73 -72
  24. data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.23.1.rbi} +841 -159
  25. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.1.0.rbi} +233 -186
  26. data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.29.0.rbi} +19135 -12188
  27. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.0.rbi} +34 -33
  28. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +77 -55
  29. data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.13.rbi} +226 -154
  30. data/sorbet/rbi/gems/{rdoc@6.6.3.1.rbi → rdoc@6.7.0.rbi} +333 -327
  31. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
  32. data/sorbet/rbi/gems/{reline@0.5.7.rbi → reline@0.5.8.rbi} +1 -0
  33. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.2.8.rbi} +121 -108
  34. data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.31.3.rbi} +92 -62
  35. data/sorbet/rbi/gems/{rubocop-minitest@0.34.5.rbi → rubocop-minitest@0.35.0.rbi} +35 -0
  36. data/sorbet/rbi/gems/{rubocop-sorbet@0.7.4.rbi → rubocop-sorbet@0.8.3.rbi} +327 -162
  37. data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.64.0.rbi} +1719 -1065
  38. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
  39. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  40. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.14.2.rbi} +123 -448
  41. data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +57 -50
  42. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +230 -37
  43. data/sorbet/rbi/gems/{zeitwerk@2.6.13.rbi → zeitwerk@2.6.15.rbi} +47 -36
  44. data/vigiles.gemspec +1 -1
  45. metadata +30 -29
  46. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -8
  47. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  48. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
  49. /data/lib/generators/{templates → vigiles/templates}/archive_conversation_migration.rb.erb +0 -0
  50. /data/lib/generators/{templates → vigiles/templates}/initializer.rb +0 -0
@@ -4,6 +4,51 @@
4
4
  # This is an autogenerated file for types exported from the `minitest` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem minitest`.
6
6
 
7
+
8
+ # Kernel extensions for minitest
9
+ #
10
+ # source://minitest//lib/minitest/spec.rb#46
11
+ module Kernel
12
+ private
13
+
14
+ # Describe a series of expectations for a given target +desc+.
15
+ #
16
+ # Defines a test class subclassing from either Minitest::Spec or
17
+ # from the surrounding describe's class. The surrounding class may
18
+ # subclass Minitest::Spec manually in order to easily share code:
19
+ #
20
+ # class MySpec < Minitest::Spec
21
+ # # ... shared code ...
22
+ # end
23
+ #
24
+ # class TestStuff < MySpec
25
+ # it "does stuff" do
26
+ # # shared code available here
27
+ # end
28
+ # describe "inner stuff" do
29
+ # it "still does stuff" do
30
+ # # ...and here
31
+ # end
32
+ # end
33
+ # end
34
+ #
35
+ # For more information on getting started with writing specs, see:
36
+ #
37
+ # http://www.rubyinside.com/a-minitestspec-tutorial-elegant-spec-style-testing-that-comes-with-ruby-5354.html
38
+ #
39
+ # For some suggestions on how to improve your specs, try:
40
+ #
41
+ # https://betterspecs.org
42
+ #
43
+ # but do note that several items there are debatable or specific to
44
+ # rspec.
45
+ #
46
+ # For more information about expectations, see Minitest::Expectations.
47
+ #
48
+ # source://minitest//lib/minitest/spec.rb#82
49
+ def describe(desc, *additional_desc, &block); end
50
+ end
51
+
7
52
  # :include: README.rdoc
8
53
  #
9
54
  # source://minitest//lib/minitest/parallel.rb#1
@@ -43,7 +88,7 @@ module Minitest
43
88
  # source://minitest//lib/minitest.rb#18
44
89
  def cattr_accessor(name); end
45
90
 
46
- # source://minitest//lib/minitest.rb#1146
91
+ # source://minitest//lib/minitest.rb#1178
47
92
  def clock_time; end
48
93
 
49
94
  # source://minitest//lib/minitest.rb#177
@@ -55,7 +100,7 @@ module Minitest
55
100
  # source://minitest//lib/minitest.rb#19
56
101
  def extensions=(_arg0); end
57
102
 
58
- # source://minitest//lib/minitest.rb#292
103
+ # source://minitest//lib/minitest.rb#306
59
104
  def filter_backtrace(bt); end
60
105
 
61
106
  # source://minitest//lib/minitest.rb#19
@@ -104,7 +149,7 @@ module Minitest
104
149
  # source://minitest//lib/minitest.rb#143
105
150
  def run(args = T.unsafe(nil)); end
106
151
 
107
- # source://minitest//lib/minitest.rb#1137
152
+ # source://minitest//lib/minitest.rb#1169
108
153
  def run_one_method(klass, method_name); end
109
154
 
110
155
  # source://minitest//lib/minitest.rb#19
@@ -118,24 +163,24 @@ end
118
163
  # Defines the API for Reporters. Subclass this and override whatever
119
164
  # you want. Go nuts.
120
165
  #
121
- # source://minitest//lib/minitest.rb#638
166
+ # source://minitest//lib/minitest.rb#652
122
167
  class Minitest::AbstractReporter
123
168
  # @return [AbstractReporter] a new instance of AbstractReporter
124
169
  #
125
- # source://minitest//lib/minitest.rb#640
170
+ # source://minitest//lib/minitest.rb#654
126
171
  def initialize; end
127
172
 
128
173
  # Did this run pass?
129
174
  #
130
175
  # @return [Boolean]
131
176
  #
132
- # source://minitest//lib/minitest.rb#675
177
+ # source://minitest//lib/minitest.rb#689
133
178
  def passed?; end
134
179
 
135
180
  # About to start running a test. This allows a reporter to show
136
181
  # that it is starting or that we are in the middle of a test run.
137
182
  #
138
- # source://minitest//lib/minitest.rb#654
183
+ # source://minitest//lib/minitest.rb#668
139
184
  def prerecord(klass, name); end
140
185
 
141
186
  # Output and record the result of the test. Call
@@ -143,43 +188,43 @@ class Minitest::AbstractReporter
143
188
  # result character string. Stores the result of the run if the run
144
189
  # did not pass.
145
190
  #
146
- # source://minitest//lib/minitest.rb#663
191
+ # source://minitest//lib/minitest.rb#677
147
192
  def record(result); end
148
193
 
149
194
  # Outputs the summary of the run.
150
195
  #
151
- # source://minitest//lib/minitest.rb#669
196
+ # source://minitest//lib/minitest.rb#683
152
197
  def report; end
153
198
 
154
199
  # Starts reporting on the run.
155
200
  #
156
- # source://minitest//lib/minitest.rb#647
201
+ # source://minitest//lib/minitest.rb#661
157
202
  def start; end
158
203
 
159
- # source://minitest//lib/minitest.rb#679
204
+ # source://minitest//lib/minitest.rb#693
160
205
  def synchronize(&block); end
161
206
  end
162
207
 
163
208
  # Represents run failures.
164
209
  #
165
- # source://minitest//lib/minitest.rb#962
210
+ # source://minitest//lib/minitest.rb#985
166
211
  class Minitest::Assertion < ::Exception
167
- # source://minitest//lib/minitest.rb#965
212
+ # source://minitest//lib/minitest.rb#988
168
213
  def error; end
169
214
 
170
215
  # Where was this run before an assertion was raised?
171
216
  #
172
- # source://minitest//lib/minitest.rb#972
217
+ # source://minitest//lib/minitest.rb#995
173
218
  def location; end
174
219
 
175
- # source://minitest//lib/minitest.rb#980
220
+ # source://minitest//lib/minitest.rb#1003
176
221
  def result_code; end
177
222
 
178
- # source://minitest//lib/minitest.rb#984
223
+ # source://minitest//lib/minitest.rb#1007
179
224
  def result_label; end
180
225
  end
181
226
 
182
- # source://minitest//lib/minitest.rb#963
227
+ # source://minitest//lib/minitest.rb#986
183
228
  Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp)
184
229
 
185
230
  # Minitest Assertions. All assertion methods accept a +msg+ which is
@@ -258,6 +303,11 @@ module Minitest::Assertions
258
303
  # source://minitest//lib/minitest/assertions.rb#293
259
304
  def assert_match(matcher, obj, msg = T.unsafe(nil)); end
260
305
 
306
+ # Assert that the mock verifies correctly.
307
+ #
308
+ # source://minitest//lib/minitest/mock.rb#250
309
+ def assert_mock(mock); end
310
+
261
311
  # Fails unless +obj+ is nil
262
312
  #
263
313
  # source://minitest//lib/minitest/assertions.rb#305
@@ -626,77 +676,77 @@ Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
626
676
  #
627
677
  # See Minitest.backtrace_filter=.
628
678
  #
629
- # source://minitest//lib/minitest.rb#1108
679
+ # source://minitest//lib/minitest.rb#1140
630
680
  class Minitest::BacktraceFilter
631
681
  # @return [BacktraceFilter] a new instance of BacktraceFilter
632
682
  #
633
- # source://minitest//lib/minitest.rb#1114
683
+ # source://minitest//lib/minitest.rb#1146
634
684
  def initialize(regexp = T.unsafe(nil)); end
635
685
 
636
686
  # Filter +bt+ to something useful. Returns the whole thing if
637
687
  # $DEBUG (ruby) or $MT_DEBUG (env).
638
688
  #
639
- # source://minitest//lib/minitest.rb#1122
689
+ # source://minitest//lib/minitest.rb#1154
640
690
  def filter(bt); end
641
691
 
642
692
  # Returns the value of attribute regexp.
643
693
  #
644
- # source://minitest//lib/minitest.rb#1112
694
+ # source://minitest//lib/minitest.rb#1144
645
695
  def regexp; end
646
696
 
647
697
  # Sets the attribute regexp
648
698
  #
649
699
  # @param value the value to set the attribute regexp to.
650
700
  #
651
- # source://minitest//lib/minitest.rb#1112
701
+ # source://minitest//lib/minitest.rb#1144
652
702
  def regexp=(_arg0); end
653
703
  end
654
704
 
655
- # source://minitest//lib/minitest.rb#1110
705
+ # source://minitest//lib/minitest.rb#1142
656
706
  Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
657
707
 
658
708
  # Dispatch to multiple reporters as one.
659
709
  #
660
- # source://minitest//lib/minitest.rb#911
710
+ # source://minitest//lib/minitest.rb#934
661
711
  class Minitest::CompositeReporter < ::Minitest::AbstractReporter
662
712
  # @return [CompositeReporter] a new instance of CompositeReporter
663
713
  #
664
- # source://minitest//lib/minitest.rb#917
714
+ # source://minitest//lib/minitest.rb#940
665
715
  def initialize(*reporters); end
666
716
 
667
717
  # Add another reporter to the mix.
668
718
  #
669
- # source://minitest//lib/minitest.rb#929
719
+ # source://minitest//lib/minitest.rb#952
670
720
  def <<(reporter); end
671
721
 
672
- # source://minitest//lib/minitest.rb#922
722
+ # source://minitest//lib/minitest.rb#945
673
723
  def io; end
674
724
 
675
725
  # @return [Boolean]
676
726
  #
677
- # source://minitest//lib/minitest.rb#933
727
+ # source://minitest//lib/minitest.rb#956
678
728
  def passed?; end
679
729
 
680
- # source://minitest//lib/minitest.rb#941
730
+ # source://minitest//lib/minitest.rb#964
681
731
  def prerecord(klass, name); end
682
732
 
683
- # source://minitest//lib/minitest.rb#948
733
+ # source://minitest//lib/minitest.rb#971
684
734
  def record(result); end
685
735
 
686
- # source://minitest//lib/minitest.rb#954
736
+ # source://minitest//lib/minitest.rb#977
687
737
  def report; end
688
738
 
689
739
  # The list of reporters to dispatch to.
690
740
  #
691
- # source://minitest//lib/minitest.rb#915
741
+ # source://minitest//lib/minitest.rb#938
692
742
  def reporters; end
693
743
 
694
744
  # The list of reporters to dispatch to.
695
745
  #
696
- # source://minitest//lib/minitest.rb#915
746
+ # source://minitest//lib/minitest.rb#938
697
747
  def reporters=(_arg0); end
698
748
 
699
- # source://minitest//lib/minitest.rb#937
749
+ # source://minitest//lib/minitest.rb#960
700
750
  def start; end
701
751
  end
702
752
 
@@ -711,6 +761,248 @@ module Minitest::Compress
711
761
  def compress(orig); end
712
762
  end
713
763
 
764
+ # source://minitest//lib/minitest/spec.rb#41
765
+ class Minitest::Expectation < ::Struct
766
+ def ctx; end
767
+ def ctx=(_); end
768
+
769
+ # source://minitest//lib/minitest/spec.rb#25
770
+ def must_be(*args, **_arg1); end
771
+
772
+ # source://minitest//lib/minitest/spec.rb#25
773
+ def must_be_close_to(*args, **_arg1); end
774
+
775
+ # source://minitest//lib/minitest/spec.rb#25
776
+ def must_be_empty(*args, **_arg1); end
777
+
778
+ # source://minitest//lib/minitest/spec.rb#25
779
+ def must_be_instance_of(*args, **_arg1); end
780
+
781
+ # source://minitest//lib/minitest/spec.rb#25
782
+ def must_be_kind_of(*args, **_arg1); end
783
+
784
+ # source://minitest//lib/minitest/spec.rb#25
785
+ def must_be_nil(*args, **_arg1); end
786
+
787
+ # source://minitest//lib/minitest/spec.rb#25
788
+ def must_be_same_as(*args, **_arg1); end
789
+
790
+ # source://minitest//lib/minitest/spec.rb#25
791
+ def must_be_silent(*args, **_arg1); end
792
+
793
+ # source://minitest//lib/minitest/spec.rb#25
794
+ def must_be_within_delta(*args, **_arg1); end
795
+
796
+ # source://minitest//lib/minitest/spec.rb#25
797
+ def must_be_within_epsilon(*args, **_arg1); end
798
+
799
+ # source://minitest//lib/minitest/spec.rb#25
800
+ def must_equal(*args, **_arg1); end
801
+
802
+ # source://minitest//lib/minitest/spec.rb#25
803
+ def must_include(*args, **_arg1); end
804
+
805
+ # source://minitest//lib/minitest/spec.rb#25
806
+ def must_match(*args, **_arg1); end
807
+
808
+ # source://minitest//lib/minitest/spec.rb#25
809
+ def must_output(*args, **_arg1); end
810
+
811
+ # source://minitest//lib/minitest/spec.rb#25
812
+ def must_pattern_match(*args, **_arg1); end
813
+
814
+ # source://minitest//lib/minitest/spec.rb#25
815
+ def must_raise(*args, **_arg1); end
816
+
817
+ # source://minitest//lib/minitest/spec.rb#25
818
+ def must_respond_to(*args, **_arg1); end
819
+
820
+ # source://minitest//lib/minitest/spec.rb#25
821
+ def must_throw(*args, **_arg1); end
822
+
823
+ # source://minitest//lib/minitest/spec.rb#25
824
+ def path_must_exist(*args, **_arg1); end
825
+
826
+ # source://minitest//lib/minitest/spec.rb#25
827
+ def path_wont_exist(*args, **_arg1); end
828
+
829
+ def target; end
830
+ def target=(_); end
831
+
832
+ # source://minitest//lib/minitest/spec.rb#25
833
+ def wont_be(*args, **_arg1); end
834
+
835
+ # source://minitest//lib/minitest/spec.rb#25
836
+ def wont_be_close_to(*args, **_arg1); end
837
+
838
+ # source://minitest//lib/minitest/spec.rb#25
839
+ def wont_be_empty(*args, **_arg1); end
840
+
841
+ # source://minitest//lib/minitest/spec.rb#25
842
+ def wont_be_instance_of(*args, **_arg1); end
843
+
844
+ # source://minitest//lib/minitest/spec.rb#25
845
+ def wont_be_kind_of(*args, **_arg1); end
846
+
847
+ # source://minitest//lib/minitest/spec.rb#25
848
+ def wont_be_nil(*args, **_arg1); end
849
+
850
+ # source://minitest//lib/minitest/spec.rb#25
851
+ def wont_be_same_as(*args, **_arg1); end
852
+
853
+ # source://minitest//lib/minitest/spec.rb#25
854
+ def wont_be_within_delta(*args, **_arg1); end
855
+
856
+ # source://minitest//lib/minitest/spec.rb#25
857
+ def wont_be_within_epsilon(*args, **_arg1); end
858
+
859
+ # source://minitest//lib/minitest/spec.rb#25
860
+ def wont_equal(*args, **_arg1); end
861
+
862
+ # source://minitest//lib/minitest/spec.rb#25
863
+ def wont_include(*args, **_arg1); end
864
+
865
+ # source://minitest//lib/minitest/spec.rb#25
866
+ def wont_match(*args, **_arg1); end
867
+
868
+ # source://minitest//lib/minitest/spec.rb#25
869
+ def wont_pattern_match(*args, **_arg1); end
870
+
871
+ # source://minitest//lib/minitest/spec.rb#25
872
+ def wont_respond_to(*args, **_arg1); end
873
+
874
+ class << self
875
+ def [](*_arg0); end
876
+ def inspect; end
877
+ def keyword_init?; end
878
+ def members; end
879
+ def new(*_arg0); end
880
+ end
881
+ end
882
+
883
+ # It's where you hide your "assertions".
884
+ #
885
+ # Please note, because of the way that expectations are implemented,
886
+ # all expectations (eg must_equal) are dependent upon a thread local
887
+ # variable +:current_spec+. If your specs rely on mixing threads into
888
+ # the specs themselves, you're better off using assertions or the new
889
+ # _(value) wrapper. For example:
890
+ #
891
+ # it "should still work in threads" do
892
+ # my_threaded_thingy do
893
+ # (1+1).must_equal 2 # bad
894
+ # assert_equal 2, 1+1 # good
895
+ # _(1 + 1).must_equal 2 # good
896
+ # value(1 + 1).must_equal 2 # good, also #expect
897
+ # _ { 1 + "1" }.must_raise TypeError # good
898
+ # end
899
+ # end
900
+ #
901
+ # source://minitest//lib/minitest/expectations.rb#20
902
+ module Minitest::Expectations
903
+ # source://minitest//lib/minitest/spec.rb#15
904
+ def must_be(*args, **_arg1); end
905
+
906
+ # source://minitest//lib/minitest/spec.rb#15
907
+ def must_be_close_to(*args, **_arg1); end
908
+
909
+ # source://minitest//lib/minitest/spec.rb#15
910
+ def must_be_empty(*args, **_arg1); end
911
+
912
+ # source://minitest//lib/minitest/spec.rb#15
913
+ def must_be_instance_of(*args, **_arg1); end
914
+
915
+ # source://minitest//lib/minitest/spec.rb#15
916
+ def must_be_kind_of(*args, **_arg1); end
917
+
918
+ # source://minitest//lib/minitest/spec.rb#15
919
+ def must_be_nil(*args, **_arg1); end
920
+
921
+ # source://minitest//lib/minitest/spec.rb#15
922
+ def must_be_same_as(*args, **_arg1); end
923
+
924
+ # source://minitest//lib/minitest/spec.rb#15
925
+ def must_be_silent(*args, **_arg1); end
926
+
927
+ # source://minitest//lib/minitest/spec.rb#15
928
+ def must_be_within_delta(*args, **_arg1); end
929
+
930
+ # source://minitest//lib/minitest/spec.rb#15
931
+ def must_be_within_epsilon(*args, **_arg1); end
932
+
933
+ # source://minitest//lib/minitest/spec.rb#15
934
+ def must_equal(*args, **_arg1); end
935
+
936
+ # source://minitest//lib/minitest/spec.rb#15
937
+ def must_include(*args, **_arg1); end
938
+
939
+ # source://minitest//lib/minitest/spec.rb#15
940
+ def must_match(*args, **_arg1); end
941
+
942
+ # source://minitest//lib/minitest/spec.rb#15
943
+ def must_output(*args, **_arg1); end
944
+
945
+ # source://minitest//lib/minitest/spec.rb#15
946
+ def must_pattern_match(*args, **_arg1); end
947
+
948
+ # source://minitest//lib/minitest/spec.rb#15
949
+ def must_raise(*args, **_arg1); end
950
+
951
+ # source://minitest//lib/minitest/spec.rb#15
952
+ def must_respond_to(*args, **_arg1); end
953
+
954
+ # source://minitest//lib/minitest/spec.rb#15
955
+ def must_throw(*args, **_arg1); end
956
+
957
+ # source://minitest//lib/minitest/spec.rb#15
958
+ def path_must_exist(*args, **_arg1); end
959
+
960
+ # source://minitest//lib/minitest/spec.rb#15
961
+ def path_wont_exist(*args, **_arg1); end
962
+
963
+ # source://minitest//lib/minitest/spec.rb#15
964
+ def wont_be(*args, **_arg1); end
965
+
966
+ # source://minitest//lib/minitest/spec.rb#15
967
+ def wont_be_close_to(*args, **_arg1); end
968
+
969
+ # source://minitest//lib/minitest/spec.rb#15
970
+ def wont_be_empty(*args, **_arg1); end
971
+
972
+ # source://minitest//lib/minitest/spec.rb#15
973
+ def wont_be_instance_of(*args, **_arg1); end
974
+
975
+ # source://minitest//lib/minitest/spec.rb#15
976
+ def wont_be_kind_of(*args, **_arg1); end
977
+
978
+ # source://minitest//lib/minitest/spec.rb#15
979
+ def wont_be_nil(*args, **_arg1); end
980
+
981
+ # source://minitest//lib/minitest/spec.rb#15
982
+ def wont_be_same_as(*args, **_arg1); end
983
+
984
+ # source://minitest//lib/minitest/spec.rb#15
985
+ def wont_be_within_delta(*args, **_arg1); end
986
+
987
+ # source://minitest//lib/minitest/spec.rb#15
988
+ def wont_be_within_epsilon(*args, **_arg1); end
989
+
990
+ # source://minitest//lib/minitest/spec.rb#15
991
+ def wont_equal(*args, **_arg1); end
992
+
993
+ # source://minitest//lib/minitest/spec.rb#15
994
+ def wont_include(*args, **_arg1); end
995
+
996
+ # source://minitest//lib/minitest/spec.rb#15
997
+ def wont_match(*args, **_arg1); end
998
+
999
+ # source://minitest//lib/minitest/spec.rb#15
1000
+ def wont_pattern_match(*args, **_arg1); end
1001
+
1002
+ # source://minitest//lib/minitest/spec.rb#15
1003
+ def wont_respond_to(*args, **_arg1); end
1004
+ end
1005
+
714
1006
  # Provides a simple set of guards that you can use in your tests
715
1007
  # to skip execution if it is not applicable. These methods are
716
1008
  # mixed into Test as both instance and class methods so you
@@ -725,51 +1017,151 @@ end
725
1017
  # # ... lots of test methods ...
726
1018
  # end
727
1019
  #
728
- # source://minitest//lib/minitest.rb#1052
1020
+ # source://minitest//lib/minitest.rb#1084
729
1021
  module Minitest::Guard
730
1022
  # Is this running on jruby?
731
1023
  #
732
1024
  # @return [Boolean]
733
1025
  #
734
- # source://minitest//lib/minitest.rb#1057
1026
+ # source://minitest//lib/minitest.rb#1089
735
1027
  def jruby?(platform = T.unsafe(nil)); end
736
1028
 
737
1029
  # Is this running on maglev?
738
1030
  #
739
1031
  # @return [Boolean]
740
1032
  #
741
- # source://minitest//lib/minitest.rb#1064
1033
+ # source://minitest//lib/minitest.rb#1096
742
1034
  def maglev?(platform = T.unsafe(nil)); end
743
1035
 
744
1036
  # Is this running on mri?
745
1037
  #
746
1038
  # @return [Boolean]
747
1039
  #
748
- # source://minitest//lib/minitest.rb#1074
1040
+ # source://minitest//lib/minitest.rb#1106
749
1041
  def mri?(platform = T.unsafe(nil)); end
750
1042
 
751
1043
  # Is this running on macOS?
752
1044
  #
753
1045
  # @return [Boolean]
754
1046
  #
755
- # source://minitest//lib/minitest.rb#1081
1047
+ # source://minitest//lib/minitest.rb#1113
756
1048
  def osx?(platform = T.unsafe(nil)); end
757
1049
 
758
1050
  # Is this running on rubinius?
759
1051
  #
760
1052
  # @return [Boolean]
761
1053
  #
762
- # source://minitest//lib/minitest.rb#1088
1054
+ # source://minitest//lib/minitest.rb#1120
763
1055
  def rubinius?(platform = T.unsafe(nil)); end
764
1056
 
765
1057
  # Is this running on windows?
766
1058
  #
767
1059
  # @return [Boolean]
768
1060
  #
769
- # source://minitest//lib/minitest.rb#1098
1061
+ # source://minitest//lib/minitest.rb#1130
770
1062
  def windows?(platform = T.unsafe(nil)); end
771
1063
  end
772
1064
 
1065
+ # A simple and clean mock object framework.
1066
+ #
1067
+ # All mock objects are an instance of Mock
1068
+ #
1069
+ # source://minitest//lib/minitest/mock.rb#10
1070
+ class Minitest::Mock
1071
+ # @return [Mock] a new instance of Mock
1072
+ #
1073
+ # source://minitest//lib/minitest/mock.rb#50
1074
+ def initialize(delegator = T.unsafe(nil)); end
1075
+
1076
+ # source://minitest//lib/minitest/mock.rb#33
1077
+ def ===(*args, **kwargs, &b); end
1078
+
1079
+ # source://minitest//lib/minitest/mock.rb#122
1080
+ def __call(name, data); end
1081
+
1082
+ def __respond_to?(*_arg0); end
1083
+
1084
+ # source://minitest//lib/minitest/mock.rb#33
1085
+ def class(*args, **kwargs, &b); end
1086
+
1087
+ # Expect that method +name+ is called, optionally with +args+ (and
1088
+ # +kwargs+ or a +blk+), and returns +retval+.
1089
+ #
1090
+ # @mock.expect(:meaning_of_life, 42)
1091
+ # @mock.meaning_of_life # => 42
1092
+ #
1093
+ # @mock.expect(:do_something_with, true, [some_obj, true])
1094
+ # @mock.do_something_with(some_obj, true) # => true
1095
+ #
1096
+ # @mock.expect(:do_something_else, true) do |a1, a2|
1097
+ # a1 == "buggs" && a2 == :bunny
1098
+ # end
1099
+ #
1100
+ # +args+ is compared to the expected args using case equality (ie, the
1101
+ # '===' operator), allowing for less specific expectations.
1102
+ #
1103
+ # @mock.expect(:uses_any_string, true, [String])
1104
+ # @mock.uses_any_string("foo") # => true
1105
+ # @mock.verify # => true
1106
+ #
1107
+ # @mock.expect(:uses_one_string, true, ["foo"])
1108
+ # @mock.uses_one_string("bar") # => raises MockExpectationError
1109
+ #
1110
+ # If a method will be called multiple times, specify a new expect for each one.
1111
+ # They will be used in the order you define them.
1112
+ #
1113
+ # @mock.expect(:ordinal_increment, 'first')
1114
+ # @mock.expect(:ordinal_increment, 'second')
1115
+ #
1116
+ # @mock.ordinal_increment # => 'first'
1117
+ # @mock.ordinal_increment # => 'second'
1118
+ # @mock.ordinal_increment # => raises MockExpectationError "No more expects available for :ordinal_increment"
1119
+ #
1120
+ # source://minitest//lib/minitest/mock.rb#93
1121
+ def expect(name, retval, args = T.unsafe(nil), **kwargs, &blk); end
1122
+
1123
+ # source://minitest//lib/minitest/mock.rb#33
1124
+ def inspect(*args, **kwargs, &b); end
1125
+
1126
+ # source://minitest//lib/minitest/mock.rb#33
1127
+ def instance_eval(*args, **kwargs, &b); end
1128
+
1129
+ # source://minitest//lib/minitest/mock.rb#33
1130
+ def instance_variables(*args, **kwargs, &b); end
1131
+
1132
+ # source://minitest//lib/minitest/mock.rb#152
1133
+ def method_missing(sym, *args, **kwargs, &block); end
1134
+
1135
+ # source://minitest//lib/minitest/mock.rb#33
1136
+ def object_id(*args, **kwargs, &b); end
1137
+
1138
+ # source://minitest//lib/minitest/mock.rb#33
1139
+ def public_send(*args, **kwargs, &b); end
1140
+
1141
+ # @return [Boolean]
1142
+ #
1143
+ # source://minitest//lib/minitest/mock.rb#238
1144
+ def respond_to?(sym, include_private = T.unsafe(nil)); end
1145
+
1146
+ # source://minitest//lib/minitest/mock.rb#33
1147
+ def send(*args, **kwargs, &b); end
1148
+
1149
+ # source://minitest//lib/minitest/mock.rb#33
1150
+ def to_s(*args, **kwargs, &b); end
1151
+
1152
+ # Verify that all methods were called as expected. Raises
1153
+ # +MockExpectationError+ if the mock object was not called as
1154
+ # expected.
1155
+ #
1156
+ # source://minitest//lib/minitest/mock.rb#142
1157
+ def verify; end
1158
+
1159
+ private
1160
+
1161
+ # source://minitest//lib/minitest/mock.rb#33
1162
+ def respond_to_missing?(*args, **kwargs, &b); end
1163
+ end
1164
+
773
1165
  # source://minitest//lib/minitest/parallel.rb#2
774
1166
  module Minitest::Parallel; end
775
1167
 
@@ -829,36 +1221,36 @@ end
829
1221
  # plugin, pull this out of the composite and replace it with your
830
1222
  # own.
831
1223
  #
832
- # source://minitest//lib/minitest.rb#710
1224
+ # source://minitest//lib/minitest.rb#724
833
1225
  class Minitest::ProgressReporter < ::Minitest::Reporter
834
- # source://minitest//lib/minitest.rb#711
1226
+ # source://minitest//lib/minitest.rb#725
835
1227
  def prerecord(klass, name); end
836
1228
 
837
- # source://minitest//lib/minitest.rb#718
1229
+ # source://minitest//lib/minitest.rb#732
838
1230
  def record(result); end
839
1231
  end
840
1232
 
841
1233
  # Shared code for anything that can get passed to a Reporter. See
842
1234
  # Minitest::Test & Minitest::Result.
843
1235
  #
844
- # source://minitest//lib/minitest.rb#532
1236
+ # source://minitest//lib/minitest.rb#546
845
1237
  module Minitest::Reportable
846
1238
  # @raise [NotImplementedError]
847
1239
  #
848
- # source://minitest//lib/minitest.rb#554
1240
+ # source://minitest//lib/minitest.rb#568
849
1241
  def class_name; end
850
1242
 
851
1243
  # Did this run error?
852
1244
  #
853
1245
  # @return [Boolean]
854
1246
  #
855
- # source://minitest//lib/minitest.rb#575
1247
+ # source://minitest//lib/minitest.rb#589
856
1248
  def error?; end
857
1249
 
858
1250
  # The location identifier of this test. Depends on a method
859
1251
  # existing called class_name.
860
1252
  #
861
- # source://minitest//lib/minitest.rb#549
1253
+ # source://minitest//lib/minitest.rb#563
862
1254
  def location; end
863
1255
 
864
1256
  # Did this run pass?
@@ -868,50 +1260,50 @@ module Minitest::Reportable
868
1260
  #
869
1261
  # @return [Boolean]
870
1262
  #
871
- # source://minitest//lib/minitest.rb#539
1263
+ # source://minitest//lib/minitest.rb#553
872
1264
  def passed?; end
873
1265
 
874
1266
  # Returns ".", "F", or "E" based on the result of the run.
875
1267
  #
876
- # source://minitest//lib/minitest.rb#561
1268
+ # source://minitest//lib/minitest.rb#575
877
1269
  def result_code; end
878
1270
 
879
1271
  # Was this run skipped?
880
1272
  #
881
1273
  # @return [Boolean]
882
1274
  #
883
- # source://minitest//lib/minitest.rb#568
1275
+ # source://minitest//lib/minitest.rb#582
884
1276
  def skipped?; end
885
1277
  end
886
1278
 
887
- # source://minitest//lib/minitest.rb#543
1279
+ # source://minitest//lib/minitest.rb#557
888
1280
  Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String)
889
1281
 
890
- # source://minitest//lib/minitest.rb#686
1282
+ # source://minitest//lib/minitest.rb#700
891
1283
  class Minitest::Reporter < ::Minitest::AbstractReporter
892
1284
  # @return [Reporter] a new instance of Reporter
893
1285
  #
894
- # source://minitest//lib/minitest.rb#695
1286
+ # source://minitest//lib/minitest.rb#709
895
1287
  def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
896
1288
 
897
1289
  # The IO used to report.
898
1290
  #
899
- # source://minitest//lib/minitest.rb#688
1291
+ # source://minitest//lib/minitest.rb#702
900
1292
  def io; end
901
1293
 
902
1294
  # The IO used to report.
903
1295
  #
904
- # source://minitest//lib/minitest.rb#688
1296
+ # source://minitest//lib/minitest.rb#702
905
1297
  def io=(_arg0); end
906
1298
 
907
1299
  # Command-line options for this run.
908
1300
  #
909
- # source://minitest//lib/minitest.rb#693
1301
+ # source://minitest//lib/minitest.rb#707
910
1302
  def options; end
911
1303
 
912
1304
  # Command-line options for this run.
913
1305
  #
914
- # source://minitest//lib/minitest.rb#693
1306
+ # source://minitest//lib/minitest.rb#707
915
1307
  def options=(_arg0); end
916
1308
  end
917
1309
 
@@ -921,80 +1313,80 @@ end
921
1313
  # blow up. By using Result.from(a_test) you can be reasonably sure
922
1314
  # that the test result can be marshalled.
923
1315
  #
924
- # source://minitest//lib/minitest.rb#587
1316
+ # source://minitest//lib/minitest.rb#601
925
1317
  class Minitest::Result < ::Minitest::Runnable
926
1318
  include ::Minitest::Reportable
927
1319
 
928
- # source://minitest//lib/minitest.rb#621
1320
+ # source://minitest//lib/minitest.rb#635
929
1321
  def class_name; end
930
1322
 
931
1323
  # The class name of the test result.
932
1324
  #
933
- # source://minitest//lib/minitest.rb#596
1325
+ # source://minitest//lib/minitest.rb#610
934
1326
  def klass; end
935
1327
 
936
1328
  # The class name of the test result.
937
1329
  #
938
- # source://minitest//lib/minitest.rb#596
1330
+ # source://minitest//lib/minitest.rb#610
939
1331
  def klass=(_arg0); end
940
1332
 
941
1333
  # The location of the test method.
942
1334
  #
943
- # source://minitest//lib/minitest.rb#601
1335
+ # source://minitest//lib/minitest.rb#615
944
1336
  def source_location; end
945
1337
 
946
1338
  # The location of the test method.
947
1339
  #
948
- # source://minitest//lib/minitest.rb#601
1340
+ # source://minitest//lib/minitest.rb#615
949
1341
  def source_location=(_arg0); end
950
1342
 
951
- # source://minitest//lib/minitest.rb#625
1343
+ # source://minitest//lib/minitest.rb#639
952
1344
  def to_s; end
953
1345
 
954
1346
  class << self
955
1347
  # Create a new test result from a Runnable instance.
956
1348
  #
957
- # source://minitest//lib/minitest.rb#606
1349
+ # source://minitest//lib/minitest.rb#620
958
1350
  def from(runnable); end
959
1351
  end
960
1352
  end
961
1353
 
962
1354
  # re-open
963
1355
  #
964
- # source://minitest//lib/minitest.rb#305
1356
+ # source://minitest//lib/minitest.rb#319
965
1357
  class Minitest::Runnable
966
1358
  # @return [Runnable] a new instance of Runnable
967
1359
  #
968
- # source://minitest//lib/minitest.rb#463
1360
+ # source://minitest//lib/minitest.rb#477
969
1361
  def initialize(name); end
970
1362
 
971
1363
  # Number of assertions executed in this run.
972
1364
  #
973
- # source://minitest//lib/minitest.rb#309
1365
+ # source://minitest//lib/minitest.rb#323
974
1366
  def assertions; end
975
1367
 
976
1368
  # Number of assertions executed in this run.
977
1369
  #
978
- # source://minitest//lib/minitest.rb#309
1370
+ # source://minitest//lib/minitest.rb#323
979
1371
  def assertions=(_arg0); end
980
1372
 
981
- # source://minitest//lib/minitest.rb#459
1373
+ # source://minitest//lib/minitest.rb#473
982
1374
  def failure; end
983
1375
 
984
1376
  # An assertion raised during the run, if any.
985
1377
  #
986
- # source://minitest//lib/minitest.rb#314
1378
+ # source://minitest//lib/minitest.rb#328
987
1379
  def failures; end
988
1380
 
989
1381
  # An assertion raised during the run, if any.
990
1382
  #
991
- # source://minitest//lib/minitest.rb#314
1383
+ # source://minitest//lib/minitest.rb#328
992
1384
  def failures=(_arg0); end
993
1385
 
994
- # source://minitest//lib/minitest.rb#445
1386
+ # source://minitest//lib/minitest.rb#459
995
1387
  def marshal_dump; end
996
1388
 
997
- # source://minitest//lib/minitest.rb#455
1389
+ # source://minitest//lib/minitest.rb#469
998
1390
  def marshal_load(ary); end
999
1391
 
1000
1392
  # Metadata you attach to the test results that get sent to the reporter.
@@ -1004,29 +1396,29 @@ class Minitest::Runnable
1004
1396
  # NOTE: this data *must* be plain (read: marshal-able) data!
1005
1397
  # Hashes! Arrays! Strings!
1006
1398
  #
1007
- # source://minitest//lib/minitest.rb#478
1399
+ # source://minitest//lib/minitest.rb#492
1008
1400
  def metadata; end
1009
1401
 
1010
1402
  # Sets metadata, mainly used for +Result.from+.
1011
1403
  #
1012
- # source://minitest//lib/minitest.rb#485
1404
+ # source://minitest//lib/minitest.rb#499
1013
1405
  def metadata=(_arg0); end
1014
1406
 
1015
1407
  # Returns true if metadata exists.
1016
1408
  #
1017
1409
  # @return [Boolean]
1018
1410
  #
1019
- # source://minitest//lib/minitest.rb#490
1411
+ # source://minitest//lib/minitest.rb#504
1020
1412
  def metadata?; end
1021
1413
 
1022
1414
  # Name of the run.
1023
1415
  #
1024
- # source://minitest//lib/minitest.rb#332
1416
+ # source://minitest//lib/minitest.rb#346
1025
1417
  def name; end
1026
1418
 
1027
1419
  # Set the name of the run.
1028
1420
  #
1029
- # source://minitest//lib/minitest.rb#339
1421
+ # source://minitest//lib/minitest.rb#353
1030
1422
  def name=(o); end
1031
1423
 
1032
1424
  # Did this run pass?
@@ -1037,7 +1429,7 @@ class Minitest::Runnable
1037
1429
  # @raise [NotImplementedError]
1038
1430
  # @return [Boolean]
1039
1431
  #
1040
- # source://minitest//lib/minitest.rb#507
1432
+ # source://minitest//lib/minitest.rb#521
1041
1433
  def passed?; end
1042
1434
 
1043
1435
  # Returns a single character string to print based on the result
@@ -1046,14 +1438,14 @@ class Minitest::Runnable
1046
1438
  #
1047
1439
  # @raise [NotImplementedError]
1048
1440
  #
1049
- # source://minitest//lib/minitest.rb#516
1441
+ # source://minitest//lib/minitest.rb#530
1050
1442
  def result_code; end
1051
1443
 
1052
1444
  # Runs a single method. Needs to return self.
1053
1445
  #
1054
1446
  # @raise [NotImplementedError]
1055
1447
  #
1056
- # source://minitest//lib/minitest.rb#497
1448
+ # source://minitest//lib/minitest.rb#511
1057
1449
  def run; end
1058
1450
 
1059
1451
  # Was this run skipped? See #passed? for more information.
@@ -1061,42 +1453,42 @@ class Minitest::Runnable
1061
1453
  # @raise [NotImplementedError]
1062
1454
  # @return [Boolean]
1063
1455
  #
1064
- # source://minitest//lib/minitest.rb#523
1456
+ # source://minitest//lib/minitest.rb#537
1065
1457
  def skipped?; end
1066
1458
 
1067
1459
  # The time it took to run.
1068
1460
  #
1069
- # source://minitest//lib/minitest.rb#319
1461
+ # source://minitest//lib/minitest.rb#333
1070
1462
  def time; end
1071
1463
 
1072
1464
  # The time it took to run.
1073
1465
  #
1074
- # source://minitest//lib/minitest.rb#319
1466
+ # source://minitest//lib/minitest.rb#333
1075
1467
  def time=(_arg0); end
1076
1468
 
1077
- # source://minitest//lib/minitest.rb#321
1469
+ # source://minitest//lib/minitest.rb#335
1078
1470
  def time_it; end
1079
1471
 
1080
1472
  class << self
1081
- # source://minitest//lib/minitest.rb#1156
1473
+ # source://minitest//lib/minitest.rb#1188
1082
1474
  def inherited(klass); end
1083
1475
 
1084
1476
  # Returns all instance methods matching the pattern +re+.
1085
1477
  #
1086
- # source://minitest//lib/minitest.rb#346
1478
+ # source://minitest//lib/minitest.rb#360
1087
1479
  def methods_matching(re); end
1088
1480
 
1089
- # source://minitest//lib/minitest.rb#415
1481
+ # source://minitest//lib/minitest.rb#429
1090
1482
  def on_signal(name, action); end
1091
1483
 
1092
- # source://minitest//lib/minitest.rb#350
1484
+ # source://minitest//lib/minitest.rb#364
1093
1485
  def reset; end
1094
1486
 
1095
1487
  # Responsible for running all runnable methods in a given class,
1096
1488
  # each in its own instance. Each instance is passed to the
1097
1489
  # reporter to record.
1098
1490
  #
1099
- # source://minitest//lib/minitest.rb#361
1491
+ # source://minitest//lib/minitest.rb#375
1100
1492
  def run(reporter, options = T.unsafe(nil)); end
1101
1493
 
1102
1494
  # Runs a single method and has the reporter record the result.
@@ -1104,7 +1496,7 @@ class Minitest::Runnable
1104
1496
  # that subclasses can specialize the running of an individual
1105
1497
  # test. See Minitest::ParallelTest::ClassMethods for an example.
1106
1498
  #
1107
- # source://minitest//lib/minitest.rb#387
1499
+ # source://minitest//lib/minitest.rb#401
1108
1500
  def run_one_method(klass, method_name, reporter); end
1109
1501
 
1110
1502
  # Each subclass of Runnable is responsible for overriding this
@@ -1112,36 +1504,269 @@ class Minitest::Runnable
1112
1504
  #
1113
1505
  # @raise [NotImplementedError]
1114
1506
  #
1115
- # source://minitest//lib/minitest.rb#432
1507
+ # source://minitest//lib/minitest.rb#446
1116
1508
  def runnable_methods; end
1117
1509
 
1118
1510
  # Returns all subclasses of Runnable.
1119
1511
  #
1120
- # source://minitest//lib/minitest.rb#439
1512
+ # source://minitest//lib/minitest.rb#453
1121
1513
  def runnables; end
1122
1514
 
1123
1515
  # Defines the order to run tests (:random by default). Override
1124
1516
  # this or use a convenience method to change it for your tests.
1125
1517
  #
1126
- # source://minitest//lib/minitest.rb#396
1518
+ # source://minitest//lib/minitest.rb#410
1127
1519
  def test_order; end
1128
1520
 
1129
- # source://minitest//lib/minitest.rb#400
1521
+ # source://minitest//lib/minitest.rb#414
1130
1522
  def with_info_handler(reporter, &block); end
1131
1523
  end
1132
1524
  end
1133
1525
 
1134
- # source://minitest//lib/minitest.rb#413
1526
+ # source://minitest//lib/minitest.rb#427
1135
1527
  Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
1136
1528
 
1137
1529
  # Assertion raised when skipping a run.
1138
1530
  #
1139
- # source://minitest//lib/minitest.rb#992
1531
+ # source://minitest//lib/minitest.rb#1015
1140
1532
  class Minitest::Skip < ::Minitest::Assertion
1141
- # source://minitest//lib/minitest.rb#993
1533
+ # source://minitest//lib/minitest.rb#1016
1142
1534
  def result_label; end
1143
1535
  end
1144
1536
 
1537
+ # Minitest::Spec -- The faster, better, less-magical spec framework!
1538
+ #
1539
+ # For a list of expectations, see Minitest::Expectations.
1540
+ #
1541
+ # source://minitest//lib/minitest/spec.rb#106
1542
+ class Minitest::Spec < ::Minitest::Test
1543
+ include ::Minitest::Spec::DSL::InstanceMethods
1544
+ extend ::Minitest::Spec::DSL
1545
+
1546
+ # @return [Spec] a new instance of Spec
1547
+ #
1548
+ # source://minitest//lib/minitest/spec.rb#112
1549
+ def initialize(name); end
1550
+
1551
+ class << self
1552
+ # source://minitest//lib/minitest/spec.rb#108
1553
+ def current; end
1554
+ end
1555
+ end
1556
+
1557
+ # Oh look! A Minitest::Spec::DSL module! Eat your heart out DHH.
1558
+ #
1559
+ # source://minitest//lib/minitest/spec.rb#120
1560
+ module Minitest::Spec::DSL
1561
+ # Define an 'after' action. Inherits the way normal methods should.
1562
+ #
1563
+ # NOTE: +type+ is ignored and is only there to make porting easier.
1564
+ #
1565
+ # Equivalent to Minitest::Test#teardown.
1566
+ #
1567
+ # source://minitest//lib/minitest/spec.rb#205
1568
+ def after(_type = T.unsafe(nil), &block); end
1569
+
1570
+ # Define a 'before' action. Inherits the way normal methods should.
1571
+ #
1572
+ # NOTE: +type+ is ignored and is only there to make porting easier.
1573
+ #
1574
+ # Equivalent to Minitest::Test#setup.
1575
+ #
1576
+ # source://minitest//lib/minitest/spec.rb#191
1577
+ def before(_type = T.unsafe(nil), &block); end
1578
+
1579
+ # source://minitest//lib/minitest/spec.rb#174
1580
+ def children; end
1581
+
1582
+ # source://minitest//lib/minitest/spec.rb#270
1583
+ def create(name, desc); end
1584
+
1585
+ # source://minitest//lib/minitest/spec.rb#291
1586
+ def desc; end
1587
+
1588
+ # source://minitest//lib/minitest/spec.rb#170
1589
+ def describe_stack; end
1590
+
1591
+ # Define an expectation with name +desc+. Name gets morphed to a
1592
+ # proper test method name. For some freakish reason, people who
1593
+ # write specs don't like class inheritance, so this goes way out of
1594
+ # its way to make sure that expectations aren't inherited.
1595
+ #
1596
+ # This is also aliased to #specify and doesn't require a +desc+ arg.
1597
+ #
1598
+ # Hint: If you _do_ want inheritance, use minitest/test. You can mix
1599
+ # and match between assertions and expectations as much as you want.
1600
+ #
1601
+ # source://minitest//lib/minitest/spec.rb#223
1602
+ def it(desc = T.unsafe(nil), &block); end
1603
+
1604
+ # Essentially, define an accessor for +name+ with +block+.
1605
+ #
1606
+ # Why use let instead of def? I honestly don't know.
1607
+ #
1608
+ # @raise [ArgumentError]
1609
+ #
1610
+ # source://minitest//lib/minitest/spec.rb#247
1611
+ def let(name, &block); end
1612
+
1613
+ # source://minitest//lib/minitest/spec.rb#283
1614
+ def name; end
1615
+
1616
+ # source://minitest//lib/minitest/spec.rb#178
1617
+ def nuke_test_methods!; end
1618
+
1619
+ # Register a new type of spec that matches the spec's description.
1620
+ # This method can take either a Regexp and a spec class or a spec
1621
+ # class and a block that takes the description and returns true if
1622
+ # it matches.
1623
+ #
1624
+ # Eg:
1625
+ #
1626
+ # register_spec_type(/Controller$/, Minitest::Spec::Rails)
1627
+ #
1628
+ # or:
1629
+ #
1630
+ # register_spec_type(Minitest::Spec::RailsModel) do |desc|
1631
+ # desc.superclass == ActiveRecord::Base
1632
+ # end
1633
+ #
1634
+ # source://minitest//lib/minitest/spec.rb#146
1635
+ def register_spec_type(*args, &block); end
1636
+
1637
+ # Figure out the spec class to use based on a spec's description. Eg:
1638
+ #
1639
+ # spec_type("BlahController") # => Minitest::Spec::Rails
1640
+ #
1641
+ # source://minitest//lib/minitest/spec.rb#160
1642
+ def spec_type(desc, *additional); end
1643
+
1644
+ # Define an expectation with name +desc+. Name gets morphed to a
1645
+ # proper test method name. For some freakish reason, people who
1646
+ # write specs don't like class inheritance, so this goes way out of
1647
+ # its way to make sure that expectations aren't inherited.
1648
+ #
1649
+ # This is also aliased to #specify and doesn't require a +desc+ arg.
1650
+ #
1651
+ # Hint: If you _do_ want inheritance, use minitest/test. You can mix
1652
+ # and match between assertions and expectations as much as you want.
1653
+ #
1654
+ # source://minitest//lib/minitest/spec.rb#223
1655
+ def specify(desc = T.unsafe(nil), &block); end
1656
+
1657
+ # Another lazy man's accessor generator. Made even more lazy by
1658
+ # setting the name for you to +subject+.
1659
+ #
1660
+ # source://minitest//lib/minitest/spec.rb#266
1661
+ def subject(&block); end
1662
+
1663
+ # source://minitest//lib/minitest/spec.rb#287
1664
+ def to_s; end
1665
+
1666
+ class << self
1667
+ # source://minitest//lib/minitest/spec.rb#335
1668
+ def extended(obj); end
1669
+ end
1670
+ end
1671
+
1672
+ # Rdoc... why are you so dumb?
1673
+ #
1674
+ # source://minitest//lib/minitest/spec.rb#297
1675
+ module Minitest::Spec::DSL::InstanceMethods
1676
+ # Takes a value or a block and returns a value monad that has
1677
+ # all of Expectations methods available to it.
1678
+ #
1679
+ # _(1 + 1).must_equal 2
1680
+ #
1681
+ # And for blocks:
1682
+ #
1683
+ # _ { 1 + "1" }.must_raise TypeError
1684
+ #
1685
+ # This method of expectation-based testing is preferable to
1686
+ # straight-expectation methods (on Object) because it stores its
1687
+ # test context, bypassing our hacky use of thread-local variables.
1688
+ #
1689
+ # NOTE: At some point, the methods on Object will be deprecated
1690
+ # and then removed.
1691
+ #
1692
+ # It is also aliased to #value and #expect for your aesthetic
1693
+ # pleasure:
1694
+ #
1695
+ # _(1 + 1).must_equal 2
1696
+ # value(1 + 1).must_equal 2
1697
+ # expect(1 + 1).must_equal 2
1698
+ #
1699
+ # source://minitest//lib/minitest/spec.rb#322
1700
+ def _(value = T.unsafe(nil), &block); end
1701
+
1702
+ # source://minitest//lib/minitest/spec.rb#329
1703
+ def before_setup; end
1704
+
1705
+ # Takes a value or a block and returns a value monad that has
1706
+ # all of Expectations methods available to it.
1707
+ #
1708
+ # _(1 + 1).must_equal 2
1709
+ #
1710
+ # And for blocks:
1711
+ #
1712
+ # _ { 1 + "1" }.must_raise TypeError
1713
+ #
1714
+ # This method of expectation-based testing is preferable to
1715
+ # straight-expectation methods (on Object) because it stores its
1716
+ # test context, bypassing our hacky use of thread-local variables.
1717
+ #
1718
+ # NOTE: At some point, the methods on Object will be deprecated
1719
+ # and then removed.
1720
+ #
1721
+ # It is also aliased to #value and #expect for your aesthetic
1722
+ # pleasure:
1723
+ #
1724
+ # _(1 + 1).must_equal 2
1725
+ # value(1 + 1).must_equal 2
1726
+ # expect(1 + 1).must_equal 2
1727
+ #
1728
+ # source://minitest//lib/minitest/spec.rb#322
1729
+ def expect(value = T.unsafe(nil), &block); end
1730
+
1731
+ # Takes a value or a block and returns a value monad that has
1732
+ # all of Expectations methods available to it.
1733
+ #
1734
+ # _(1 + 1).must_equal 2
1735
+ #
1736
+ # And for blocks:
1737
+ #
1738
+ # _ { 1 + "1" }.must_raise TypeError
1739
+ #
1740
+ # This method of expectation-based testing is preferable to
1741
+ # straight-expectation methods (on Object) because it stores its
1742
+ # test context, bypassing our hacky use of thread-local variables.
1743
+ #
1744
+ # NOTE: At some point, the methods on Object will be deprecated
1745
+ # and then removed.
1746
+ #
1747
+ # It is also aliased to #value and #expect for your aesthetic
1748
+ # pleasure:
1749
+ #
1750
+ # _(1 + 1).must_equal 2
1751
+ # value(1 + 1).must_equal 2
1752
+ # expect(1 + 1).must_equal 2
1753
+ #
1754
+ # source://minitest//lib/minitest/spec.rb#322
1755
+ def value(value = T.unsafe(nil), &block); end
1756
+ end
1757
+
1758
+ # Contains pairs of matchers and Spec classes to be used to
1759
+ # calculate the superclass of a top-level describe. This allows for
1760
+ # automatically customizable spec types.
1761
+ #
1762
+ # See: register_spec_type and spec_type
1763
+ #
1764
+ # source://minitest//lib/minitest/spec.rb#128
1765
+ Minitest::Spec::DSL::TYPES = T.let(T.unsafe(nil), Array)
1766
+
1767
+ # source://minitest//lib/minitest/spec.rb#342
1768
+ Minitest::Spec::TYPES = T.let(T.unsafe(nil), Array)
1769
+
1145
1770
  # A reporter that gathers statistics about a test run. Does not do
1146
1771
  # any IO because meant to be used as a parent class for a reporter
1147
1772
  # that does.
@@ -1162,114 +1787,124 @@ end
1162
1787
  # end
1163
1788
  # end
1164
1789
  #
1165
- # source://minitest//lib/minitest.rb#746
1790
+ # source://minitest//lib/minitest.rb#760
1166
1791
  class Minitest::StatisticsReporter < ::Minitest::Reporter
1167
1792
  # @return [StatisticsReporter] a new instance of StatisticsReporter
1168
1793
  #
1169
- # source://minitest//lib/minitest.rb#790
1794
+ # source://minitest//lib/minitest.rb#809
1170
1795
  def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
1171
1796
 
1172
1797
  # Total number of assertions.
1173
1798
  #
1174
- # source://minitest//lib/minitest.rb#750
1799
+ # source://minitest//lib/minitest.rb#764
1175
1800
  def assertions; end
1176
1801
 
1177
1802
  # Total number of assertions.
1178
1803
  #
1179
- # source://minitest//lib/minitest.rb#750
1804
+ # source://minitest//lib/minitest.rb#764
1180
1805
  def assertions=(_arg0); end
1181
1806
 
1182
1807
  # Total number of test cases.
1183
1808
  #
1184
- # source://minitest//lib/minitest.rb#755
1809
+ # source://minitest//lib/minitest.rb#769
1185
1810
  def count; end
1186
1811
 
1187
1812
  # Total number of test cases.
1188
1813
  #
1189
- # source://minitest//lib/minitest.rb#755
1814
+ # source://minitest//lib/minitest.rb#769
1190
1815
  def count=(_arg0); end
1191
1816
 
1192
1817
  # Total number of tests that erred.
1193
1818
  #
1194
- # source://minitest//lib/minitest.rb#783
1819
+ # source://minitest//lib/minitest.rb#797
1195
1820
  def errors; end
1196
1821
 
1197
1822
  # Total number of tests that erred.
1198
1823
  #
1199
- # source://minitest//lib/minitest.rb#783
1824
+ # source://minitest//lib/minitest.rb#797
1200
1825
  def errors=(_arg0); end
1201
1826
 
1202
1827
  # Total number of tests that failed.
1203
1828
  #
1204
- # source://minitest//lib/minitest.rb#778
1829
+ # source://minitest//lib/minitest.rb#792
1205
1830
  def failures; end
1206
1831
 
1207
1832
  # Total number of tests that failed.
1208
1833
  #
1209
- # source://minitest//lib/minitest.rb#778
1834
+ # source://minitest//lib/minitest.rb#792
1210
1835
  def failures=(_arg0); end
1211
1836
 
1212
1837
  # @return [Boolean]
1213
1838
  #
1214
- # source://minitest//lib/minitest.rb#803
1839
+ # source://minitest//lib/minitest.rb#823
1215
1840
  def passed?; end
1216
1841
 
1217
- # source://minitest//lib/minitest.rb#811
1842
+ # source://minitest//lib/minitest.rb#831
1218
1843
  def record(result); end
1219
1844
 
1220
1845
  # Report on the tracked statistics.
1221
1846
  #
1222
- # source://minitest//lib/minitest.rb#821
1847
+ # source://minitest//lib/minitest.rb#841
1223
1848
  def report; end
1224
1849
 
1225
1850
  # An +Array+ of test cases that failed or were skipped.
1226
1851
  #
1227
- # source://minitest//lib/minitest.rb#760
1852
+ # source://minitest//lib/minitest.rb#774
1228
1853
  def results; end
1229
1854
 
1230
1855
  # An +Array+ of test cases that failed or were skipped.
1231
1856
  #
1232
- # source://minitest//lib/minitest.rb#760
1857
+ # source://minitest//lib/minitest.rb#774
1233
1858
  def results=(_arg0); end
1234
1859
 
1235
1860
  # Total number of tests that where skipped.
1236
1861
  #
1237
- # source://minitest//lib/minitest.rb#788
1862
+ # source://minitest//lib/minitest.rb#807
1238
1863
  def skips; end
1239
1864
 
1240
1865
  # Total number of tests that where skipped.
1241
1866
  #
1242
- # source://minitest//lib/minitest.rb#788
1867
+ # source://minitest//lib/minitest.rb#807
1243
1868
  def skips=(_arg0); end
1244
1869
 
1245
- # source://minitest//lib/minitest.rb#807
1870
+ # source://minitest//lib/minitest.rb#827
1246
1871
  def start; end
1247
1872
 
1248
1873
  # Time the test run started. If available, the monotonic clock is
1249
1874
  # used and this is a +Float+, otherwise it's an instance of
1250
1875
  # +Time+.
1251
1876
  #
1252
- # source://minitest//lib/minitest.rb#767
1877
+ # source://minitest//lib/minitest.rb#781
1253
1878
  def start_time; end
1254
1879
 
1255
1880
  # Time the test run started. If available, the monotonic clock is
1256
1881
  # used and this is a +Float+, otherwise it's an instance of
1257
1882
  # +Time+.
1258
1883
  #
1259
- # source://minitest//lib/minitest.rb#767
1884
+ # source://minitest//lib/minitest.rb#781
1260
1885
  def start_time=(_arg0); end
1261
1886
 
1262
1887
  # Test run time. If available, the monotonic clock is used and
1263
1888
  # this is a +Float+, otherwise it's an instance of +Time+.
1264
1889
  #
1265
- # source://minitest//lib/minitest.rb#773
1890
+ # source://minitest//lib/minitest.rb#787
1266
1891
  def total_time; end
1267
1892
 
1268
1893
  # Test run time. If available, the monotonic clock is used and
1269
1894
  # this is a +Float+, otherwise it's an instance of +Time+.
1270
1895
  #
1271
- # source://minitest//lib/minitest.rb#773
1896
+ # source://minitest//lib/minitest.rb#787
1272
1897
  def total_time=(_arg0); end
1898
+
1899
+ # Total number of tests that warned.
1900
+ #
1901
+ # source://minitest//lib/minitest.rb#802
1902
+ def warnings; end
1903
+
1904
+ # Total number of tests that warned.
1905
+ #
1906
+ # source://minitest//lib/minitest.rb#802
1907
+ def warnings=(_arg0); end
1273
1908
  end
1274
1909
 
1275
1910
  # A reporter that prints the header, summary, and failure details at
@@ -1280,48 +1915,48 @@ end
1280
1915
  # plugin, pull this out of the composite and replace it with your
1281
1916
  # own.
1282
1917
  #
1283
- # source://minitest//lib/minitest.rb#841
1918
+ # source://minitest//lib/minitest.rb#862
1284
1919
  class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
1285
- # source://minitest//lib/minitest.rb#876
1920
+ # source://minitest//lib/minitest.rb#897
1286
1921
  def aggregated_results(io); end
1287
1922
 
1288
1923
  # Returns the value of attribute old_sync.
1289
1924
  #
1290
- # source://minitest//lib/minitest.rb#844
1925
+ # source://minitest//lib/minitest.rb#865
1291
1926
  def old_sync; end
1292
1927
 
1293
1928
  # Sets the attribute old_sync
1294
1929
  #
1295
1930
  # @param value the value to set the attribute old_sync to.
1296
1931
  #
1297
- # source://minitest//lib/minitest.rb#844
1932
+ # source://minitest//lib/minitest.rb#865
1298
1933
  def old_sync=(_arg0); end
1299
1934
 
1300
- # source://minitest//lib/minitest.rb#859
1935
+ # source://minitest//lib/minitest.rb#880
1301
1936
  def report; end
1302
1937
 
1303
1938
  # :startdoc:
1304
1939
  #
1305
- # source://minitest//lib/minitest.rb#847
1940
+ # source://minitest//lib/minitest.rb#868
1306
1941
  def start; end
1307
1942
 
1308
- # source://minitest//lib/minitest.rb#871
1943
+ # source://minitest//lib/minitest.rb#892
1309
1944
  def statistics; end
1310
1945
 
1311
- # source://minitest//lib/minitest.rb#896
1946
+ # source://minitest//lib/minitest.rb#917
1312
1947
  def summary; end
1313
1948
 
1314
1949
  # :stopdoc:
1315
1950
  #
1316
- # source://minitest//lib/minitest.rb#843
1951
+ # source://minitest//lib/minitest.rb#864
1317
1952
  def sync; end
1318
1953
 
1319
1954
  # :stopdoc:
1320
1955
  #
1321
- # source://minitest//lib/minitest.rb#843
1956
+ # source://minitest//lib/minitest.rb#864
1322
1957
  def sync=(_arg0); end
1323
1958
 
1324
- # source://minitest//lib/minitest.rb#892
1959
+ # source://minitest//lib/minitest.rb#913
1325
1960
  def to_s; end
1326
1961
  end
1327
1962
 
@@ -1340,27 +1975,27 @@ class Minitest::Test < ::Minitest::Runnable
1340
1975
 
1341
1976
  # LifecycleHooks
1342
1977
  #
1343
- # source://minitest//lib/minitest/test.rb#190
1978
+ # source://minitest//lib/minitest/test.rb#191
1344
1979
  def capture_exceptions; end
1345
1980
 
1346
1981
  # source://minitest//lib/minitest/test.rb#15
1347
1982
  def class_name; end
1348
1983
 
1349
- # source://minitest//lib/minitest/test.rb#207
1984
+ # source://minitest//lib/minitest/test.rb#208
1350
1985
  def neuter_exception(e); end
1351
1986
 
1352
- # source://minitest//lib/minitest/test.rb#218
1987
+ # source://minitest//lib/minitest/test.rb#219
1353
1988
  def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
1354
1989
 
1355
1990
  # Runs a single test with setup/teardown hooks.
1356
1991
  #
1357
- # source://minitest//lib/minitest/test.rb#86
1992
+ # source://minitest//lib/minitest/test.rb#87
1358
1993
  def run; end
1359
1994
 
1360
- # source://minitest//lib/minitest/test.rb#200
1995
+ # source://minitest//lib/minitest/test.rb#201
1361
1996
  def sanitize_exception(e); end
1362
1997
 
1363
- # source://minitest//lib/minitest/test.rb#232
1998
+ # source://minitest//lib/minitest/test.rb#233
1364
1999
  def with_info_handler(&block); end
1365
2000
 
1366
2001
  class << self
@@ -1391,18 +2026,19 @@ class Minitest::Test < ::Minitest::Runnable
1391
2026
  # source://minitest//lib/minitest/test.rb#48
1392
2027
  def make_my_diffs_pretty!; end
1393
2028
 
1394
- # Call this at the top of your tests when you want to run your
1395
- # tests in parallel. In doing so, you're admitting that you rule
1396
- # and your tests are awesome.
2029
+ # Call this at the top of your tests (inside the +Minitest::Test+
2030
+ # subclass or +describe+ block) when you want to run your tests in
2031
+ # parallel. In doing so, you're admitting that you rule and your
2032
+ # tests are awesome.
1397
2033
  #
1398
- # source://minitest//lib/minitest/test.rb#59
2034
+ # source://minitest//lib/minitest/test.rb#60
1399
2035
  def parallelize_me!; end
1400
2036
 
1401
2037
  # Returns all instance methods starting with "test_". Based on
1402
2038
  # #test_order, the methods are either sorted, randomized
1403
2039
  # (default), or run in parallel.
1404
2040
  #
1405
- # source://minitest//lib/minitest/test.rb#69
2041
+ # source://minitest//lib/minitest/test.rb#70
1406
2042
  def runnable_methods; end
1407
2043
  end
1408
2044
  end
@@ -1411,7 +2047,7 @@ end
1411
2047
  # meant for library writers, NOT for regular test authors. See
1412
2048
  # #before_setup for an example.
1413
2049
  #
1414
- # source://minitest//lib/minitest/test.rb#113
2050
+ # source://minitest//lib/minitest/test.rb#114
1415
2051
  module Minitest::Test::LifecycleHooks
1416
2052
  # Runs before every test, after setup. This hook is meant for
1417
2053
  # libraries to extend minitest. It is not meant to be used by
@@ -1419,7 +2055,7 @@ module Minitest::Test::LifecycleHooks
1419
2055
  #
1420
2056
  # See #before_setup for an example.
1421
2057
  #
1422
- # source://minitest//lib/minitest/test.rb#163
2058
+ # source://minitest//lib/minitest/test.rb#164
1423
2059
  def after_setup; end
1424
2060
 
1425
2061
  # Runs after every test, after teardown. This hook is meant for
@@ -1428,7 +2064,7 @@ module Minitest::Test::LifecycleHooks
1428
2064
  #
1429
2065
  # See #before_setup for an example.
1430
2066
  #
1431
- # source://minitest//lib/minitest/test.rb#187
2067
+ # source://minitest//lib/minitest/test.rb#188
1432
2068
  def after_teardown; end
1433
2069
 
1434
2070
  # Runs before every test, before setup. This hook is meant for
@@ -1463,7 +2099,7 @@ module Minitest::Test::LifecycleHooks
1463
2099
  # include MyMinitestPlugin
1464
2100
  # end
1465
2101
  #
1466
- # source://minitest//lib/minitest/test.rb#148
2102
+ # source://minitest//lib/minitest/test.rb#149
1467
2103
  def before_setup; end
1468
2104
 
1469
2105
  # Runs after every test, before teardown. This hook is meant for
@@ -1472,19 +2108,19 @@ module Minitest::Test::LifecycleHooks
1472
2108
  #
1473
2109
  # See #before_setup for an example.
1474
2110
  #
1475
- # source://minitest//lib/minitest/test.rb#172
2111
+ # source://minitest//lib/minitest/test.rb#173
1476
2112
  def before_teardown; end
1477
2113
 
1478
2114
  # Runs before every test. Use this to set up before each test
1479
2115
  # run.
1480
2116
  #
1481
- # source://minitest//lib/minitest/test.rb#154
2117
+ # source://minitest//lib/minitest/test.rb#155
1482
2118
  def setup; end
1483
2119
 
1484
2120
  # Runs after every test. Use this to clean up after each test
1485
2121
  # run.
1486
2122
  #
1487
- # source://minitest//lib/minitest/test.rb#178
2123
+ # source://minitest//lib/minitest/test.rb#179
1488
2124
  def teardown; end
1489
2125
  end
1490
2126
 
@@ -1499,37 +2135,83 @@ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
1499
2135
 
1500
2136
  # Assertion wrapping an unexpected error that was raised during a run.
1501
2137
  #
1502
- # source://minitest//lib/minitest.rb#1001
2138
+ # source://minitest//lib/minitest.rb#1024
1503
2139
  class Minitest::UnexpectedError < ::Minitest::Assertion
1504
2140
  include ::Minitest::Compress
1505
2141
 
1506
2142
  # @return [UnexpectedError] a new instance of UnexpectedError
1507
2143
  #
1508
- # source://minitest//lib/minitest.rb#1007
2144
+ # source://minitest//lib/minitest.rb#1030
1509
2145
  def initialize(error); end
1510
2146
 
1511
- # source://minitest//lib/minitest.rb#1020
2147
+ # source://minitest//lib/minitest.rb#1043
1512
2148
  def backtrace; end
1513
2149
 
1514
2150
  # TODO: figure out how to use `cause` instead
1515
2151
  #
1516
- # source://minitest//lib/minitest.rb#1005
2152
+ # source://minitest//lib/minitest.rb#1028
1517
2153
  def error; end
1518
2154
 
1519
2155
  # TODO: figure out how to use `cause` instead
1520
2156
  #
1521
- # source://minitest//lib/minitest.rb#1005
2157
+ # source://minitest//lib/minitest.rb#1028
1522
2158
  def error=(_arg0); end
1523
2159
 
1524
- # source://minitest//lib/minitest.rb#1026
2160
+ # source://minitest//lib/minitest.rb#1049
1525
2161
  def message; end
1526
2162
 
1527
- # source://minitest//lib/minitest.rb#1032
2163
+ # source://minitest//lib/minitest.rb#1055
1528
2164
  def result_label; end
1529
2165
  end
1530
2166
 
1531
- # source://minitest//lib/minitest.rb#1024
2167
+ # source://minitest//lib/minitest.rb#1047
1532
2168
  Minitest::UnexpectedError::BASE_RE = T.let(T.unsafe(nil), Regexp)
1533
2169
 
2170
+ # Assertion raised on warning when running in -Werror mode.
2171
+ #
2172
+ # source://minitest//lib/minitest.rb#1063
2173
+ class Minitest::UnexpectedWarning < ::Minitest::Assertion
2174
+ # source://minitest//lib/minitest.rb#1064
2175
+ def result_label; end
2176
+ end
2177
+
1534
2178
  # source://minitest//lib/minitest.rb#12
1535
2179
  Minitest::VERSION = T.let(T.unsafe(nil), String)
2180
+
2181
+ # source://minitest//lib/minitest/mock.rb#1
2182
+ class MockExpectationError < ::StandardError; end
2183
+
2184
+ # source://minitest//lib/minitest/spec.rb#3
2185
+ class Module
2186
+ # source://minitest//lib/minitest/spec.rb#4
2187
+ def infect_an_assertion(meth, new_name, dont_flip = T.unsafe(nil)); end
2188
+ end
2189
+
2190
+ # source://minitest//lib/minitest/spec.rb#347
2191
+ class Object < ::BasicObject
2192
+ include ::Kernel
2193
+ include ::PP::ObjectMixin
2194
+ include ::Minitest::Expectations
2195
+
2196
+ # Add a temporary stubbed method replacing +name+ for the duration
2197
+ # of the +block+. If +val_or_callable+ responds to #call, then it
2198
+ # returns the result of calling it, otherwise returns the value
2199
+ # as-is. If stubbed method yields a block, +block_args+ will be
2200
+ # passed along. Cleans up the stub at the end of the +block+. The
2201
+ # method +name+ must exist before stubbing.
2202
+ #
2203
+ # def test_stale_eh
2204
+ # obj_under_test = Something.new
2205
+ # refute obj_under_test.stale?
2206
+ #
2207
+ # Time.stub :now, Time.at(0) do
2208
+ # assert obj_under_test.stale?
2209
+ # end
2210
+ # end
2211
+ # --
2212
+ # NOTE: keyword args in callables are NOT checked for correctness
2213
+ # against the existing method. Too many edge cases to be worth it.
2214
+ #
2215
+ # source://minitest//lib/minitest/mock.rb#280
2216
+ def stub(name, val_or_callable, *block_args, **block_kwargs, &block); end
2217
+ end