repeatable 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +19 -23
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +16 -2
- data/Gemfile +1 -0
- data/Gemfile.lock +86 -73
- data/README.md +8 -5
- data/lib/repeatable/expression/date.rb +1 -0
- data/lib/repeatable/expression/range_in_year.rb +2 -0
- data/lib/repeatable/version.rb +1 -1
- data/rbi/repeatable.rbi +1 -1
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +3 -3
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/{commander@4.6.0.rbi → commander@5.0.0.rbi} +1 -0
- data/sorbet/rbi/gems/{diff-lcs@1.4.4.rbi → diff-lcs@1.6.2.rbi} +135 -83
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
- data/sorbet/rbi/gems/{highline@2.0.3.rbi → highline@3.0.1.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.13.2.rbi} +759 -233
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +11 -5
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +41 -9
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
- data/sorbet/rbi/gems/{parlour@8.1.0.rbi → parlour@9.1.2.rbi} +86 -68
- data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.9.0.rbi} +908 -891
- data/sorbet/rbi/gems/{prism@0.28.0.rbi → prism@1.4.0.rbi} +14078 -10249
- data/sorbet/rbi/gems/{pry@0.14.0.rbi → pry@0.15.2.rbi} +437 -244
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +36 -33
- data/sorbet/rbi/gems/{rake@13.0.3.rbi → rake@13.3.0.rbi} +83 -76
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
- data/sorbet/rbi/gems/rbs@3.9.5.rbi +6976 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.11.2.rbi} +1089 -1015
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.3.rbi} +833 -329
- data/sorbet/rbi/gems/{rspec-core@3.10.1.rbi → rspec-core@3.13.5.rbi} +1014 -613
- data/sorbet/rbi/gems/{rspec-expectations@3.10.1.rbi → rspec-expectations@3.13.5.rbi} +897 -638
- data/sorbet/rbi/gems/{rspec-mocks@3.10.2.rbi → rspec-mocks@3.13.5.rbi} +547 -444
- data/sorbet/rbi/gems/{rspec-support@3.10.2.rbi → rspec-support@3.13.5.rbi} +337 -304
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.46.0.rbi} +1678 -958
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.80.2.rbi} +11243 -5431
- data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +225 -0
- data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +39 -25
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +233 -2
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
- data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.51.0.rbi} +181 -96
- data/sorbet/rbi/gems/{tapioca@0.13.3.rbi → tapioca@0.16.11.rbi} +489 -388
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.4.0.rbi} +94 -46
- data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.1.0.rbi +251 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -236
- metadata +46 -40
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3071
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -76
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -216
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4420
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +0 -0
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `rspec-core` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem rspec-core`.
|
6
6
|
|
7
|
+
|
7
8
|
module ERB::Escape
|
8
9
|
private
|
9
10
|
|
@@ -64,7 +65,7 @@ module RSpec
|
|
64
65
|
|
65
66
|
# @private
|
66
67
|
#
|
67
|
-
# source://rspec-core//lib/rspec/core.rb#
|
68
|
+
# source://rspec-core//lib/rspec/core.rb#194
|
68
69
|
def const_missing(name); end
|
69
70
|
|
70
71
|
# source://rspec-core//lib/rspec/core/dsl.rb#42
|
@@ -101,6 +102,33 @@ module RSpec
|
|
101
102
|
# source://rspec-core//lib/rspec/core.rb#128
|
102
103
|
def current_example=(example); end
|
103
104
|
|
105
|
+
# Get the current RSpec execution scope
|
106
|
+
#
|
107
|
+
# Returns (in order of lifecycle):
|
108
|
+
# * `:suite` as an initial value, this is outside of the test lifecycle.
|
109
|
+
# * `:before_suite_hook` during `before(:suite)` hooks.
|
110
|
+
# * `:before_context_hook` during `before(:context)` hooks.
|
111
|
+
# * `:before_example_hook` during `before(:example)` hooks and `around(:example)` before `example.run`.
|
112
|
+
# * `:example` within the example run.
|
113
|
+
# * `:after_example_hook` during `after(:example)` hooks and `around(:example)` after `example.run`.
|
114
|
+
# * `:after_context_hook` during `after(:context)` hooks.
|
115
|
+
# * `:after_suite_hook` during `after(:suite)` hooks.
|
116
|
+
# * `:suite` as a final value, again this is outside of the test lifecycle.
|
117
|
+
#
|
118
|
+
# Reminder, `:context` hooks have `:all` alias and `:example` hooks have `:each` alias.
|
119
|
+
#
|
120
|
+
# @return [Symbol]
|
121
|
+
#
|
122
|
+
# source://rspec-core//lib/rspec/core.rb#154
|
123
|
+
def current_scope; end
|
124
|
+
|
125
|
+
# Set the current scope rspec is executing in
|
126
|
+
#
|
127
|
+
# @api private
|
128
|
+
#
|
129
|
+
# source://rspec-core//lib/rspec/core.rb#134
|
130
|
+
def current_scope=(scope); end
|
131
|
+
|
104
132
|
# source://rspec-core//lib/rspec/core/dsl.rb#42
|
105
133
|
def describe(*args, &example_group_block); end
|
106
134
|
|
@@ -136,7 +164,7 @@ module RSpec
|
|
136
164
|
#
|
137
165
|
# @private
|
138
166
|
#
|
139
|
-
# source://rspec-core//lib/rspec/core.rb#
|
167
|
+
# source://rspec-core//lib/rspec/core.rb#160
|
140
168
|
def world; end
|
141
169
|
|
142
170
|
# Setters for shared global objects
|
@@ -161,7 +189,7 @@ module RSpec::Core
|
|
161
189
|
class << self
|
162
190
|
# @private path to executable file.
|
163
191
|
#
|
164
|
-
# source://rspec-core//lib/rspec/core.rb#
|
192
|
+
# source://rspec-core//lib/rspec/core.rb#181
|
165
193
|
def path_to_executable; end
|
166
194
|
end
|
167
195
|
end
|
@@ -170,10 +198,10 @@ end
|
|
170
198
|
#
|
171
199
|
# @private
|
172
200
|
#
|
173
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
201
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#782
|
174
202
|
class RSpec::Core::AnonymousExampleGroup < ::RSpec::Core::ExampleGroup
|
175
203
|
class << self
|
176
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
204
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#783
|
177
205
|
def metadata; end
|
178
206
|
end
|
179
207
|
end
|
@@ -257,27 +285,32 @@ class RSpec::Core::Bisect::BisectFailedError < ::StandardError
|
|
257
285
|
end
|
258
286
|
|
259
287
|
# Wraps a pipe to support sending objects between a child and
|
260
|
-
# parent process.
|
288
|
+
# parent process. Where supported, encoding is explicitly
|
289
|
+
# set to ensure binary data is able to pass from child to
|
290
|
+
# parent.
|
261
291
|
#
|
262
292
|
# @private
|
263
293
|
#
|
264
|
-
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#
|
294
|
+
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#36
|
265
295
|
class RSpec::Core::Bisect::Channel
|
266
296
|
# @return [Channel] a new instance of Channel
|
267
297
|
#
|
268
|
-
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#
|
298
|
+
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#41
|
269
299
|
def initialize; end
|
270
300
|
|
271
|
-
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#
|
301
|
+
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#62
|
272
302
|
def close; end
|
273
303
|
|
274
|
-
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#
|
304
|
+
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#56
|
275
305
|
def receive; end
|
276
306
|
|
277
|
-
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#
|
307
|
+
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#50
|
278
308
|
def send(message); end
|
279
309
|
end
|
280
310
|
|
311
|
+
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#38
|
312
|
+
RSpec::Core::Bisect::Channel::MARSHAL_DUMP_ENCODING = T.let(T.unsafe(nil), Encoding)
|
313
|
+
|
281
314
|
# @private
|
282
315
|
#
|
283
316
|
# source://rspec-core//lib/rspec/core/bisect/utilities.rb#5
|
@@ -375,7 +408,7 @@ class RSpec::Core::Configuration
|
|
375
408
|
#
|
376
409
|
# @return [Configuration] a new instance of Configuration
|
377
410
|
#
|
378
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
411
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#528
|
379
412
|
def initialize; end
|
380
413
|
|
381
414
|
# Adds a formatter to the set RSpec will use for this run.
|
@@ -392,7 +425,7 @@ class RSpec::Core::Configuration
|
|
392
425
|
# the configured `output_stream` (`$stdout`, by default) will be used.
|
393
426
|
# @see RSpec::Core::Formatters::Protocol
|
394
427
|
#
|
395
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
428
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#996
|
396
429
|
def add_formatter(formatter, output = T.unsafe(nil)); end
|
397
430
|
|
398
431
|
# Adds a custom setting to the RSpec.configuration object.
|
@@ -421,7 +454,7 @@ class RSpec::Core::Configuration
|
|
421
454
|
# @overload add_setting
|
422
455
|
# @param opts [Hash] a customizable set of options
|
423
456
|
#
|
424
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
457
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#659
|
425
458
|
def add_setting(name, opts = T.unsafe(nil)); end
|
426
459
|
|
427
460
|
# Defines a `after` hook. See {Hooks#after} for full docs.
|
@@ -435,7 +468,7 @@ class RSpec::Core::Configuration
|
|
435
468
|
# @see #before
|
436
469
|
# @see #prepend_before
|
437
470
|
#
|
438
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
471
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2031
|
439
472
|
def after(scope = T.unsafe(nil), *meta, &block); end
|
440
473
|
|
441
474
|
# Creates a method that defines an example group with the provided
|
@@ -465,7 +498,7 @@ class RSpec::Core::Configuration
|
|
465
498
|
# @see #alias_example_to
|
466
499
|
# @see #expose_dsl_globally=
|
467
500
|
#
|
468
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
501
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1209
|
469
502
|
def alias_example_group_to(new_name, *args); end
|
470
503
|
|
471
504
|
# Creates a method that delegates to `example` including the submitted
|
@@ -500,7 +533,7 @@ class RSpec::Core::Configuration
|
|
500
533
|
# @param name [String] example name alias
|
501
534
|
# @param args [Array<Symbol>, Hash] metadata for the generated example
|
502
535
|
#
|
503
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
536
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1177
|
504
537
|
def alias_example_to(name, *args); end
|
505
538
|
|
506
539
|
# Define an alias for it_should_behave_like that allows different
|
@@ -529,7 +562,7 @@ class RSpec::Core::Configuration
|
|
529
562
|
# in RSpec to define `it_should_behave_like` (for backward
|
530
563
|
# compatibility), but we also add docs for that method.
|
531
564
|
#
|
532
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
565
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1240
|
533
566
|
def alias_it_behaves_like_to(new_name, report_label = T.unsafe(nil)); end
|
534
567
|
|
535
568
|
# Define an alias for it_should_behave_like that allows different
|
@@ -558,7 +591,7 @@ class RSpec::Core::Configuration
|
|
558
591
|
# in RSpec to define `it_should_behave_like` (for backward
|
559
592
|
# compatibility), but we also add docs for that method.
|
560
593
|
#
|
561
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
594
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1240
|
562
595
|
def alias_it_should_behave_like_to(new_name, report_label = T.unsafe(nil)); end
|
563
596
|
|
564
597
|
# Adds `block` to the end of the list of `after` blocks in the same
|
@@ -576,7 +609,7 @@ class RSpec::Core::Configuration
|
|
576
609
|
# @see #before
|
577
610
|
# @see #prepend_before
|
578
611
|
#
|
579
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
612
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2061
|
580
613
|
def append_after(scope = T.unsafe(nil), *meta, &block); end
|
581
614
|
|
582
615
|
# Defines a `before` hook. See {Hooks#before} for full docs.
|
@@ -590,20 +623,20 @@ class RSpec::Core::Configuration
|
|
590
623
|
# @see #after
|
591
624
|
# @see #append_after
|
592
625
|
#
|
593
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
626
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1976
|
594
627
|
def append_before(scope = T.unsafe(nil), *meta, &block); end
|
595
628
|
|
596
629
|
# @private
|
597
630
|
# @raise [SystemStackError]
|
598
631
|
#
|
599
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
632
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1941
|
600
633
|
def apply_derived_metadata_to(metadata); end
|
601
634
|
|
602
635
|
# Registers `block` as an `around` hook.
|
603
636
|
#
|
604
637
|
# See {Hooks#around} for full `around` hook docs.
|
605
638
|
#
|
606
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
639
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2079
|
607
640
|
def around(scope = T.unsafe(nil), *meta, &block); end
|
608
641
|
|
609
642
|
# Regexps used to exclude lines from backtraces.
|
@@ -620,19 +653,19 @@ class RSpec::Core::Configuration
|
|
620
653
|
#
|
621
654
|
# @return [Array<Regexp>]
|
622
655
|
#
|
623
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
656
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#697
|
624
657
|
def backtrace_exclusion_patterns; end
|
625
658
|
|
626
659
|
# Set regular expressions used to exclude lines in backtrace.
|
627
660
|
#
|
628
|
-
# @param patterns [Array<Regexp>] set backtrace_formatter
|
661
|
+
# @param patterns [Array<Regexp>] set backtrace_formatter exclusion_patterns
|
629
662
|
#
|
630
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
663
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#703
|
631
664
|
def backtrace_exclusion_patterns=(patterns); end
|
632
665
|
|
633
666
|
# @private
|
634
667
|
#
|
635
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
668
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#522
|
636
669
|
def backtrace_formatter; end
|
637
670
|
|
638
671
|
# Regexps used to include lines in backtraces.
|
@@ -646,14 +679,14 @@ class RSpec::Core::Configuration
|
|
646
679
|
#
|
647
680
|
# @return [Array<Regexp>]
|
648
681
|
#
|
649
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
682
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#716
|
650
683
|
def backtrace_inclusion_patterns; end
|
651
684
|
|
652
685
|
# Set regular expressions used to include lines in backtrace.
|
653
686
|
#
|
654
687
|
# @attr patterns [Array<Regexp>] set backtrace_formatter inclusion_patterns
|
655
688
|
#
|
656
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
689
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#722
|
657
690
|
def backtrace_inclusion_patterns=(patterns); end
|
658
691
|
|
659
692
|
# Defines a `before` hook. See {Hooks#before} for full docs.
|
@@ -667,7 +700,7 @@ class RSpec::Core::Configuration
|
|
667
700
|
# @see #after
|
668
701
|
# @see #append_after
|
669
702
|
#
|
670
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
703
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1976
|
671
704
|
def before(scope = T.unsafe(nil), *meta, &block); end
|
672
705
|
|
673
706
|
# Determines which bisect runner implementation gets used to run subsets
|
@@ -689,15 +722,15 @@ class RSpec::Core::Configuration
|
|
689
722
|
# loaded via `--require`.
|
690
723
|
# @return [Symbol]
|
691
724
|
#
|
692
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
725
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#499
|
693
726
|
def bisect_runner; end
|
694
727
|
|
695
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
728
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#500
|
696
729
|
def bisect_runner=(value); end
|
697
730
|
|
698
731
|
# @private
|
699
732
|
#
|
700
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
733
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2125
|
701
734
|
def bisect_runner_class; end
|
702
735
|
|
703
736
|
# Enables color output if the output is a TTY. As of RSpec 3.6, this is
|
@@ -711,7 +744,7 @@ class RSpec::Core::Configuration
|
|
711
744
|
# @see color_mode
|
712
745
|
# @see color_enabled?
|
713
746
|
#
|
714
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
747
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#922
|
715
748
|
def color; end
|
716
749
|
|
717
750
|
# Toggle output color.
|
@@ -720,7 +753,7 @@ class RSpec::Core::Configuration
|
|
720
753
|
# rely on the fact that TTYs will display color by default, or set
|
721
754
|
# {:color_mode} to :on to display color on a non-TTY output.
|
722
755
|
#
|
723
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
756
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#960
|
724
757
|
def color=(_arg0); end
|
725
758
|
|
726
759
|
# Check if color is enabled for a particular output.
|
@@ -729,7 +762,7 @@ class RSpec::Core::Configuration
|
|
729
762
|
# `output_stream`
|
730
763
|
# @return [Boolean]
|
731
764
|
#
|
732
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
765
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#943
|
733
766
|
def color_enabled?(output = T.unsafe(nil)); end
|
734
767
|
|
735
768
|
# The mode for determining whether to display output in color. One of:
|
@@ -742,12 +775,12 @@ class RSpec::Core::Configuration
|
|
742
775
|
# @return [Boolean]
|
743
776
|
# @see color_enabled?
|
744
777
|
#
|
745
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
778
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#935
|
746
779
|
def color_mode; end
|
747
780
|
|
748
781
|
# Set the color mode.
|
749
782
|
#
|
750
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
783
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#953
|
751
784
|
def color_mode=(_arg0); end
|
752
785
|
|
753
786
|
# Used internally to extend the singleton class of a single example's
|
@@ -755,12 +788,12 @@ class RSpec::Core::Configuration
|
|
755
788
|
#
|
756
789
|
# @private
|
757
790
|
#
|
758
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
791
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1580
|
759
792
|
def configure_example(example, example_hooks); end
|
760
793
|
|
761
794
|
# @private
|
762
795
|
#
|
763
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
796
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1622
|
764
797
|
def configure_expectation_framework; end
|
765
798
|
|
766
799
|
# Used internally to extend a group with modules using `include`, `prepend` and/or
|
@@ -768,12 +801,12 @@ class RSpec::Core::Configuration
|
|
768
801
|
#
|
769
802
|
# @private
|
770
803
|
#
|
771
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
804
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1568
|
772
805
|
def configure_group(group); end
|
773
806
|
|
774
807
|
# @private
|
775
808
|
#
|
776
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
809
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1616
|
777
810
|
def configure_mock_framework; end
|
778
811
|
|
779
812
|
# The default output color. Defaults to `:white` but can be set to one of
|
@@ -800,7 +833,7 @@ class RSpec::Core::Configuration
|
|
800
833
|
# The formatter that will be used if no formatter has been set.
|
801
834
|
# Defaults to 'progress'.
|
802
835
|
#
|
803
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
836
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1003
|
804
837
|
def default_formatter; end
|
805
838
|
|
806
839
|
# Sets a fallback formatter to use if none other has been set.
|
@@ -811,7 +844,7 @@ class RSpec::Core::Configuration
|
|
811
844
|
# rspec.default_formatter = 'doc'
|
812
845
|
# end
|
813
846
|
#
|
814
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
847
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1014
|
815
848
|
def default_formatter=(value); end
|
816
849
|
|
817
850
|
# Path to use if no path is provided to the `rspec` command (default:
|
@@ -856,7 +889,7 @@ class RSpec::Core::Configuration
|
|
856
889
|
# @yieldparam metadata [Hash] original metadata hash from an example or
|
857
890
|
# group. Mutate this in your block as needed.
|
858
891
|
#
|
859
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
892
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1900
|
860
893
|
def define_derived_metadata(*filters, &block); end
|
861
894
|
|
862
895
|
# Determines where deprecation warnings are printed.
|
@@ -897,7 +930,7 @@ class RSpec::Core::Configuration
|
|
897
930
|
|
898
931
|
# @private
|
899
932
|
#
|
900
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
933
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1881
|
901
934
|
def disable_monkey_patching; end
|
902
935
|
|
903
936
|
# Enables zero monkey patching mode for RSpec. It removes monkey
|
@@ -932,15 +965,15 @@ class RSpec::Core::Configuration
|
|
932
965
|
# if the user is using those (either explicitly or implicitly
|
933
966
|
# by not setting `mock_with` or `expect_with` to anything else).
|
934
967
|
# @note If the user uses this options with `mock_with :mocha`
|
935
|
-
# (or
|
968
|
+
# (or similar) they will still have monkey patching active
|
936
969
|
# in their test environment from mocha.
|
937
970
|
#
|
938
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
971
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1873
|
939
972
|
def disable_monkey_patching!; end
|
940
973
|
|
941
974
|
# @private
|
942
975
|
#
|
943
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
976
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1881
|
944
977
|
def disable_monkey_patching=(_arg0); end
|
945
978
|
|
946
979
|
# Run examples over DRb (default: `false`). RSpec doesn't supply the DRb
|
@@ -1052,7 +1085,7 @@ class RSpec::Core::Configuration
|
|
1052
1085
|
# Returns the `exclusion_filter`. If none has been set, returns an empty
|
1053
1086
|
# hash.
|
1054
1087
|
#
|
1055
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1088
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1369
|
1056
1089
|
def exclusion_filter; end
|
1057
1090
|
|
1058
1091
|
# Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't
|
@@ -1063,7 +1096,7 @@ class RSpec::Core::Configuration
|
|
1063
1096
|
# This overrides any exclusion filters/tags set on the command line or in
|
1064
1097
|
# configuration files.
|
1065
1098
|
#
|
1066
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1099
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1362
|
1067
1100
|
def exclusion_filter=(filter); end
|
1068
1101
|
|
1069
1102
|
# Sets the expectation framework module(s) to be included in each example
|
@@ -1090,17 +1123,17 @@ class RSpec::Core::Configuration
|
|
1090
1123
|
# custom_config.custom_setting = true
|
1091
1124
|
# end
|
1092
1125
|
#
|
1093
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1126
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#858
|
1094
1127
|
def expect_with(*frameworks); end
|
1095
1128
|
|
1096
1129
|
# Delegates to expect_with(framework).
|
1097
1130
|
#
|
1098
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1131
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#831
|
1099
1132
|
def expectation_framework=(framework); end
|
1100
1133
|
|
1101
1134
|
# Returns the configured expectation framework adapter module(s)
|
1102
1135
|
#
|
1103
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1136
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#819
|
1104
1137
|
def expectation_frameworks; end
|
1105
1138
|
|
1106
1139
|
# Exposes the current running example via the named
|
@@ -1125,7 +1158,7 @@ class RSpec::Core::Configuration
|
|
1125
1158
|
# end
|
1126
1159
|
# @param method_name [Symbol] the name of the helper method
|
1127
1160
|
#
|
1128
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1161
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1811
|
1129
1162
|
def expose_current_running_example_as(method_name); end
|
1130
1163
|
|
1131
1164
|
# Use this to expose the core RSpec DSL via `Module` and the `main`
|
@@ -1182,7 +1215,7 @@ class RSpec::Core::Configuration
|
|
1182
1215
|
# @see #include
|
1183
1216
|
# @see #prepend
|
1184
1217
|
#
|
1185
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1218
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1518
|
1186
1219
|
def extend(mod, *filters); end
|
1187
1220
|
|
1188
1221
|
# If specified, indicates the number of failures required before cleaning
|
@@ -1254,25 +1287,25 @@ class RSpec::Core::Configuration
|
|
1254
1287
|
|
1255
1288
|
# @private
|
1256
1289
|
#
|
1257
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1290
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1083
|
1258
1291
|
def files_or_directories_to_run=(*files); end
|
1259
1292
|
|
1260
1293
|
# The spec files RSpec will run.
|
1261
1294
|
#
|
1262
1295
|
# @return [Array] specified files about to run
|
1263
1296
|
#
|
1264
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1297
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1096
|
1265
1298
|
def files_to_run; end
|
1266
1299
|
|
1267
1300
|
# @private
|
1268
1301
|
#
|
1269
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1302
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#516
|
1270
1303
|
def files_to_run=(_arg0); end
|
1271
1304
|
|
1272
1305
|
# Returns the `inclusion_filter`. If none has been set, returns an empty
|
1273
1306
|
# hash.
|
1274
1307
|
#
|
1275
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1308
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1313
|
1276
1309
|
def filter; end
|
1277
1310
|
|
1278
1311
|
# Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't
|
@@ -1283,7 +1316,7 @@ class RSpec::Core::Configuration
|
|
1283
1316
|
# This overrides any inclusion filters/tags set on the command line or in
|
1284
1317
|
# configuration files.
|
1285
1318
|
#
|
1286
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1319
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1304
|
1287
1320
|
def filter=(filter); end
|
1288
1321
|
|
1289
1322
|
# Adds {#backtrace_exclusion_patterns} that will filter lines from
|
@@ -1301,17 +1334,17 @@ class RSpec::Core::Configuration
|
|
1301
1334
|
# :path option, this will not filter it.
|
1302
1335
|
# @param gem_names [Array<String>] Names of the gems to filter
|
1303
1336
|
#
|
1304
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1337
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#742
|
1305
1338
|
def filter_gems_from_backtrace(*gem_names); end
|
1306
1339
|
|
1307
1340
|
# @private
|
1308
1341
|
#
|
1309
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1342
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#518
|
1310
1343
|
def filter_manager; end
|
1311
1344
|
|
1312
1345
|
# @private
|
1313
1346
|
#
|
1314
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1347
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#518
|
1315
1348
|
def filter_manager=(_arg0); end
|
1316
1349
|
|
1317
1350
|
# Adds key/value pairs to the `inclusion_filter`. If `args`
|
@@ -1345,7 +1378,7 @@ class RSpec::Core::Configuration
|
|
1345
1378
|
#
|
1346
1379
|
# filter_run_including :foo # same as filter_run_including :foo => true
|
1347
1380
|
#
|
1348
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1381
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1275
|
1349
1382
|
def filter_run(*args); end
|
1350
1383
|
|
1351
1384
|
# Adds key/value pairs to the `exclusion_filter`. If `args`
|
@@ -1379,7 +1412,7 @@ class RSpec::Core::Configuration
|
|
1379
1412
|
#
|
1380
1413
|
# filter_run_excluding :foo # same as filter_run_excluding :foo => true
|
1381
1414
|
#
|
1382
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1415
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1349
|
1383
1416
|
def filter_run_excluding(*args); end
|
1384
1417
|
|
1385
1418
|
# Adds key/value pairs to the `inclusion_filter`. If `args`
|
@@ -1413,7 +1446,7 @@ class RSpec::Core::Configuration
|
|
1413
1446
|
#
|
1414
1447
|
# filter_run_including :foo # same as filter_run_including :foo => true
|
1415
1448
|
#
|
1416
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1449
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1275
|
1417
1450
|
def filter_run_including(*args); end
|
1418
1451
|
|
1419
1452
|
# Applies the provided filter only if any of examples match, in constrast
|
@@ -1426,7 +1459,7 @@ class RSpec::Core::Configuration
|
|
1426
1459
|
# (as in `fdescribe`, `fcontext` and `fit`) since those are aliases for
|
1427
1460
|
# `describe`/`context`/`it` with `:focus` metadata.
|
1428
1461
|
#
|
1429
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1462
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1291
|
1430
1463
|
def filter_run_when_matching(*args); end
|
1431
1464
|
|
1432
1465
|
# Color used when a pending example is fixed. Defaults to `:blue` but can
|
@@ -1454,7 +1487,7 @@ class RSpec::Core::Configuration
|
|
1454
1487
|
#
|
1455
1488
|
# @private
|
1456
1489
|
#
|
1457
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1490
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#592
|
1458
1491
|
def force(hash); end
|
1459
1492
|
|
1460
1493
|
# Formats the docstring output using the block provided.
|
@@ -1466,12 +1499,12 @@ class RSpec::Core::Configuration
|
|
1466
1499
|
# config.format_docstrings { |s| s.strip }
|
1467
1500
|
# end
|
1468
1501
|
#
|
1469
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1502
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1661
|
1470
1503
|
def format_docstrings(&block); end
|
1471
1504
|
|
1472
1505
|
# @private
|
1473
1506
|
#
|
1474
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1507
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1666
|
1475
1508
|
def format_docstrings_block; end
|
1476
1509
|
|
1477
1510
|
# Adds a formatter to the set RSpec will use for this run.
|
@@ -1488,12 +1521,12 @@ class RSpec::Core::Configuration
|
|
1488
1521
|
# the configured `output_stream` (`$stdout`, by default) will be used.
|
1489
1522
|
# @see RSpec::Core::Formatters::Protocol
|
1490
1523
|
#
|
1491
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1524
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#996
|
1492
1525
|
def formatter=(formatter, output = T.unsafe(nil)); end
|
1493
1526
|
|
1494
1527
|
# @private
|
1495
1528
|
#
|
1496
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1529
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1029
|
1497
1530
|
def formatter_loader; end
|
1498
1531
|
|
1499
1532
|
# Returns a duplicate of the formatters currently loaded in
|
@@ -1503,33 +1536,42 @@ class RSpec::Core::Configuration
|
|
1503
1536
|
#
|
1504
1537
|
# @return [Array] the formatters currently loaded
|
1505
1538
|
#
|
1506
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1539
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1024
|
1507
1540
|
def formatters; end
|
1508
1541
|
|
1509
1542
|
# Toggle full backtrace.
|
1510
1543
|
#
|
1511
1544
|
# @attr true_or_false [Boolean] toggle full backtrace display
|
1512
1545
|
#
|
1513
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1546
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#908
|
1514
1547
|
def full_backtrace=(true_or_false); end
|
1515
1548
|
|
1516
1549
|
# Check if full backtrace is enabled.
|
1517
1550
|
#
|
1518
1551
|
# @return [Boolean] is full backtrace enabled
|
1519
1552
|
#
|
1520
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1553
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#902
|
1521
1554
|
def full_backtrace?; end
|
1522
1555
|
|
1556
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#66
|
1557
|
+
def full_cause_backtrace; end
|
1558
|
+
|
1559
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#89
|
1560
|
+
def full_cause_backtrace=(_arg0); end
|
1561
|
+
|
1562
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#78
|
1563
|
+
def full_cause_backtrace?; end
|
1564
|
+
|
1523
1565
|
# @return [Array] full description filter
|
1524
1566
|
#
|
1525
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1567
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#977
|
1526
1568
|
def full_description; end
|
1527
1569
|
|
1528
1570
|
# Run examples matching on `description` in all files to run.
|
1529
1571
|
#
|
1530
1572
|
# @param description [String, Regexp] the pattern to filter on
|
1531
1573
|
#
|
1532
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1574
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#972
|
1533
1575
|
def full_description=(description); end
|
1534
1576
|
|
1535
1577
|
# Holds the various registered hooks. Here we use a FilterableItemRepository
|
@@ -1538,12 +1580,12 @@ class RSpec::Core::Configuration
|
|
1538
1580
|
#
|
1539
1581
|
# @private
|
1540
1582
|
#
|
1541
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1583
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2109
|
1542
1584
|
def hooks; end
|
1543
1585
|
|
1544
1586
|
# @private
|
1545
1587
|
#
|
1546
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1588
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1607
|
1547
1589
|
def in_project_source_dir_regex; end
|
1548
1590
|
|
1549
1591
|
# Tells RSpec to include `mod` in example groups. Methods defined in
|
@@ -1578,6 +1620,9 @@ class RSpec::Core::Configuration
|
|
1578
1620
|
#
|
1579
1621
|
# # included in examples with `:type => :request` metadata
|
1580
1622
|
# config.include(AuthenticationHelpers, :type => :request)
|
1623
|
+
#
|
1624
|
+
# # included in examples where the `:type` metadata matches a proc condition
|
1625
|
+
# config.include(AuthenticationHelpers, :type => proc { |type, _metadata| [:request, :controller].include?(type) })
|
1581
1626
|
# end
|
1582
1627
|
#
|
1583
1628
|
# describe "edit profile", :preferences, :type => :request do
|
@@ -1597,7 +1642,7 @@ class RSpec::Core::Configuration
|
|
1597
1642
|
# @see #extend
|
1598
1643
|
# @see #prepend
|
1599
1644
|
#
|
1600
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1645
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1428
|
1601
1646
|
def include(mod, *filters); end
|
1602
1647
|
|
1603
1648
|
# Tells RSpec to include the named shared example group in example groups.
|
@@ -1640,13 +1685,13 @@ class RSpec::Core::Configuration
|
|
1640
1685
|
# example.
|
1641
1686
|
# @see #include
|
1642
1687
|
#
|
1643
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1688
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1475
|
1644
1689
|
def include_context(shared_group_name, *filters); end
|
1645
1690
|
|
1646
1691
|
# Returns the `inclusion_filter`. If none has been set, returns an empty
|
1647
1692
|
# hash.
|
1648
1693
|
#
|
1649
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1694
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1313
|
1650
1695
|
def inclusion_filter; end
|
1651
1696
|
|
1652
1697
|
# Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't
|
@@ -1657,12 +1702,12 @@ class RSpec::Core::Configuration
|
|
1657
1702
|
# This overrides any inclusion filters/tags set on the command line or in
|
1658
1703
|
# configuration files.
|
1659
1704
|
#
|
1660
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1705
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1304
|
1661
1706
|
def inclusion_filter=(filter); end
|
1662
1707
|
|
1663
1708
|
# @private
|
1664
1709
|
#
|
1665
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1710
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1101
|
1666
1711
|
def last_run_statuses; end
|
1667
1712
|
|
1668
1713
|
# Returns dirs that have been prepended to the load path by the `-I`
|
@@ -1675,28 +1720,28 @@ class RSpec::Core::Configuration
|
|
1675
1720
|
|
1676
1721
|
# @private
|
1677
1722
|
#
|
1678
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1723
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#963
|
1679
1724
|
def libs=(libs); end
|
1680
1725
|
|
1681
1726
|
# @private
|
1682
1727
|
#
|
1683
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1728
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1630
|
1684
1729
|
def load_spec_files; end
|
1685
1730
|
|
1686
1731
|
# @private
|
1687
1732
|
#
|
1688
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1733
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#522
|
1689
1734
|
def loaded_spec_files; end
|
1690
1735
|
|
1691
|
-
# Maximum count of failed source lines to display in the failure reports
|
1692
|
-
# (
|
1736
|
+
# Maximum count of failed source lines to display in the failure reports
|
1737
|
+
# (defaults to `10`).
|
1693
1738
|
# return [Integer]
|
1694
1739
|
#
|
1695
1740
|
# source://rspec-core//lib/rspec/core/configuration.rb#66
|
1696
1741
|
def max_displayed_failure_line_count; end
|
1697
1742
|
|
1698
|
-
# Maximum count of failed source lines to display in the failure reports
|
1699
|
-
# (
|
1743
|
+
# Maximum count of failed source lines to display in the failure reports
|
1744
|
+
# (defaults to `10`).
|
1700
1745
|
# return [Integer]
|
1701
1746
|
#
|
1702
1747
|
# source://rspec-core//lib/rspec/core/configuration.rb#89
|
@@ -1709,12 +1754,12 @@ class RSpec::Core::Configuration
|
|
1709
1754
|
#
|
1710
1755
|
# @return [Symbol]
|
1711
1756
|
#
|
1712
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1757
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#669
|
1713
1758
|
def mock_framework; end
|
1714
1759
|
|
1715
1760
|
# Delegates to mock_framework=(framework).
|
1716
1761
|
#
|
1717
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1762
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#681
|
1718
1763
|
def mock_framework=(framework); end
|
1719
1764
|
|
1720
1765
|
# Sets the mock framework adapter module.
|
@@ -1747,19 +1792,19 @@ class RSpec::Core::Configuration
|
|
1747
1792
|
# mod_config.custom_setting = true
|
1748
1793
|
# end
|
1749
1794
|
#
|
1750
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1795
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#786
|
1751
1796
|
def mock_with(framework); end
|
1752
1797
|
|
1753
1798
|
# Invokes block before defining an example group
|
1754
1799
|
#
|
1755
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1800
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2114
|
1756
1801
|
def on_example_group_definition(&block); end
|
1757
1802
|
|
1758
1803
|
# Returns an array of blocks to call before defining an example group
|
1759
1804
|
#
|
1760
1805
|
# @api private
|
1761
1806
|
#
|
1762
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1807
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2120
|
1763
1808
|
def on_example_group_definition_callbacks; end
|
1764
1809
|
|
1765
1810
|
# Indicates if the `--only-failures` (or `--next-failure`) flag is being used.
|
@@ -1785,15 +1830,15 @@ class RSpec::Core::Configuration
|
|
1785
1830
|
#
|
1786
1831
|
# @see #register_ordering
|
1787
1832
|
#
|
1788
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1833
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1673
|
1789
1834
|
def order=(*args, &block); end
|
1790
1835
|
|
1791
1836
|
# @private
|
1792
1837
|
#
|
1793
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1838
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#522
|
1794
1839
|
def ordering_manager; end
|
1795
1840
|
|
1796
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1841
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1673
|
1797
1842
|
def ordering_registry(*args, &block); end
|
1798
1843
|
|
1799
1844
|
# Determines where RSpec will send its output.
|
@@ -1846,6 +1891,31 @@ class RSpec::Core::Configuration
|
|
1846
1891
|
# source://rspec-core//lib/rspec/core/configuration.rb#78
|
1847
1892
|
def pending_color?; end
|
1848
1893
|
|
1894
|
+
# Format the output for pending examples. Can be set to:
|
1895
|
+
# - :full (default) - pending examples appear similarly to failures
|
1896
|
+
# - :no_backtrace - same as above, but with no backtrace
|
1897
|
+
# - :skip - do not show the section at all
|
1898
|
+
# return [Symbol]
|
1899
|
+
#
|
1900
|
+
# @raise [ArgumentError]
|
1901
|
+
#
|
1902
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#66
|
1903
|
+
def pending_failure_output; end
|
1904
|
+
|
1905
|
+
# Format the output for pending examples. Can be set to:
|
1906
|
+
# - :full (default) - pending examples appear similarly to failures
|
1907
|
+
# - :no_backtrace - same as above, but with no backtrace
|
1908
|
+
# - :skip - do not show the section at all
|
1909
|
+
# return [Symbol]
|
1910
|
+
#
|
1911
|
+
# @raise [ArgumentError]
|
1912
|
+
#
|
1913
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#473
|
1914
|
+
def pending_failure_output=(mode); end
|
1915
|
+
|
1916
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#78
|
1917
|
+
def pending_failure_output?; end
|
1918
|
+
|
1849
1919
|
# Tells RSpec to prepend example groups with `mod`. Methods defined in
|
1850
1920
|
# `mod` are exposed to examples (not example groups). Use `filters` to
|
1851
1921
|
# constrain the groups in which to prepend the module.
|
@@ -1878,7 +1948,7 @@ class RSpec::Core::Configuration
|
|
1878
1948
|
# @see #include
|
1879
1949
|
# @see #extend
|
1880
1950
|
#
|
1881
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1951
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1557
|
1882
1952
|
def prepend(mod, *filters); end
|
1883
1953
|
|
1884
1954
|
# Defines a `after` hook. See {Hooks#after} for full docs.
|
@@ -1892,7 +1962,7 @@ class RSpec::Core::Configuration
|
|
1892
1962
|
# @see #before
|
1893
1963
|
# @see #prepend_before
|
1894
1964
|
#
|
1895
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1965
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2031
|
1896
1966
|
def prepend_after(scope = T.unsafe(nil), *meta, &block); end
|
1897
1967
|
|
1898
1968
|
# Adds `block` to the start of the list of `before` blocks in the same
|
@@ -1910,7 +1980,7 @@ class RSpec::Core::Configuration
|
|
1910
1980
|
# @see #after
|
1911
1981
|
# @see #append_after
|
1912
1982
|
#
|
1913
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1983
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2006
|
1914
1984
|
def prepend_before(scope = T.unsafe(nil), *meta, &block); end
|
1915
1985
|
|
1916
1986
|
# Defaults `profile_examples` to 10 examples when `@profile_examples` is
|
@@ -1918,7 +1988,7 @@ class RSpec::Core::Configuration
|
|
1918
1988
|
#
|
1919
1989
|
# @api private
|
1920
1990
|
#
|
1921
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
1991
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1073
|
1922
1992
|
def profile_examples; end
|
1923
1993
|
|
1924
1994
|
# Report the times for the slowest examples (default: `false`).
|
@@ -1970,11 +2040,12 @@ class RSpec::Core::Configuration
|
|
1970
2040
|
# rspec.raise_errors_for_deprecations!
|
1971
2041
|
# end
|
1972
2042
|
#
|
1973
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2043
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1833
|
1974
2044
|
def raise_errors_for_deprecations!; end
|
1975
2045
|
|
1976
|
-
# Turns warnings into errors. This can be useful when
|
2046
|
+
# Turns RSpec warnings into errors. This can be useful when
|
1977
2047
|
# you want RSpec to run in a 'strict' no warning situation.
|
2048
|
+
# (Note this does not capture or raise on Ruby warnings).
|
1978
2049
|
#
|
1979
2050
|
# @example
|
1980
2051
|
#
|
@@ -1982,7 +2053,7 @@ class RSpec::Core::Configuration
|
|
1982
2053
|
# rspec.raise_on_warning = true
|
1983
2054
|
# end
|
1984
2055
|
#
|
1985
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2056
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1781
|
1986
2057
|
def raise_on_warning=(value); end
|
1987
2058
|
|
1988
2059
|
# Registers a named ordering strategy that can later be
|
@@ -2024,12 +2095,12 @@ class RSpec::Core::Configuration
|
|
2024
2095
|
# @yieldparam list [Array<RSpec::Core::Example>, Array<RSpec::Core::ExampleGroup>] The examples or groups to order
|
2025
2096
|
# @yieldreturn [Array<RSpec::Core::Example>, Array<RSpec::Core::ExampleGroup>] The re-ordered examples or groups
|
2026
2097
|
#
|
2027
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2098
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1673
|
2028
2099
|
def register_ordering(*args, &block); end
|
2029
2100
|
|
2030
2101
|
# @return [RSpec::Core::Reporter] the currently configured reporter
|
2031
2102
|
#
|
2032
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2103
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1056
|
2033
2104
|
def reporter; end
|
2034
2105
|
|
2035
2106
|
# Indicates files configured to be required.
|
@@ -2041,22 +2112,22 @@ class RSpec::Core::Configuration
|
|
2041
2112
|
|
2042
2113
|
# @private
|
2043
2114
|
#
|
2044
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2115
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1597
|
2045
2116
|
def requires=(paths); end
|
2046
2117
|
|
2047
2118
|
# @private
|
2048
2119
|
#
|
2049
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2120
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#601
|
2050
2121
|
def reset; end
|
2051
2122
|
|
2052
2123
|
# @private
|
2053
2124
|
#
|
2054
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2125
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#614
|
2055
2126
|
def reset_filters; end
|
2056
2127
|
|
2057
2128
|
# @private
|
2058
2129
|
#
|
2059
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2130
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#607
|
2060
2131
|
def reset_reporter; end
|
2061
2132
|
|
2062
2133
|
# Run all examples if none match the configured filters
|
@@ -2092,15 +2163,15 @@ class RSpec::Core::Configuration
|
|
2092
2163
|
# We recommend, actually, that you use the command line approach so you
|
2093
2164
|
# don't accidentally leave the seed encoded.
|
2094
2165
|
#
|
2095
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2166
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1673
|
2096
2167
|
def seed(*args, &block); end
|
2097
2168
|
|
2098
2169
|
# Sets the seed value and sets the default global ordering to random.
|
2099
2170
|
#
|
2100
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2171
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1673
|
2101
2172
|
def seed=(*args, &block); end
|
2102
2173
|
|
2103
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2174
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1673
|
2104
2175
|
def seed_used?(*args, &block); end
|
2105
2176
|
|
2106
2177
|
# Configures how RSpec treats metadata passed as part of a shared example
|
@@ -2168,7 +2239,7 @@ class RSpec::Core::Configuration
|
|
2168
2239
|
|
2169
2240
|
# @private
|
2170
2241
|
#
|
2171
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2242
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1138
|
2172
2243
|
def spec_files_with_failures; end
|
2173
2244
|
|
2174
2245
|
# source://rspec-core//lib/rspec/core/configuration.rb#66
|
@@ -2182,12 +2253,12 @@ class RSpec::Core::Configuration
|
|
2182
2253
|
|
2183
2254
|
# @private
|
2184
2255
|
#
|
2185
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2256
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#520
|
2186
2257
|
def static_config_filter_manager; end
|
2187
2258
|
|
2188
2259
|
# @private
|
2189
2260
|
#
|
2190
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2261
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#520
|
2191
2262
|
def static_config_filter_manager=(_arg0); end
|
2192
2263
|
|
2193
2264
|
# Color to use to indicate success. Defaults to `:green` but can be set
|
@@ -2246,12 +2317,12 @@ class RSpec::Core::Configuration
|
|
2246
2317
|
|
2247
2318
|
# Set Ruby warnings on or off.
|
2248
2319
|
#
|
2249
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2320
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1760
|
2250
2321
|
def warnings=(value); end
|
2251
2322
|
|
2252
2323
|
# @return [Boolean] Whether or not ruby warnings are enabled.
|
2253
2324
|
#
|
2254
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2325
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1765
|
2255
2326
|
def warnings?; end
|
2256
2327
|
|
2257
2328
|
# Defines a callback that runs after the first example with matching
|
@@ -2273,22 +2344,22 @@ class RSpec::Core::Configuration
|
|
2273
2344
|
# end
|
2274
2345
|
# end
|
2275
2346
|
#
|
2276
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2347
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1923
|
2277
2348
|
def when_first_matching_example_defined(*filters); end
|
2278
2349
|
|
2279
2350
|
# @private
|
2280
2351
|
#
|
2281
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2352
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2091
|
2282
2353
|
def with_suite_hooks; end
|
2283
2354
|
|
2284
2355
|
# @private
|
2285
2356
|
#
|
2286
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2357
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#518
|
2287
2358
|
def world; end
|
2288
2359
|
|
2289
2360
|
# @private
|
2290
2361
|
#
|
2291
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2362
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#518
|
2292
2363
|
def world=(_arg0); end
|
2293
2364
|
|
2294
2365
|
private
|
@@ -2297,111 +2368,111 @@ class RSpec::Core::Configuration
|
|
2297
2368
|
#
|
2298
2369
|
# @return [Boolean]
|
2299
2370
|
#
|
2300
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2371
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2254
|
2301
2372
|
def absolute_pattern?(pattern); end
|
2302
2373
|
|
2303
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2374
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2355
|
2304
2375
|
def add_hook_to_existing_matching_groups(meta, scope, &block); end
|
2305
2376
|
|
2306
2377
|
# @raise [MustBeConfiguredBeforeExampleGroupsError]
|
2307
2378
|
#
|
2308
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2379
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2294
|
2309
2380
|
def assert_no_example_groups_defined(config_option); end
|
2310
2381
|
|
2311
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2382
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2344
|
2312
2383
|
def clear_values_derived_from_example_status_persistence_file_path; end
|
2313
2384
|
|
2314
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2385
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2276
|
2315
2386
|
def command; end
|
2316
2387
|
|
2317
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2388
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2320
|
2318
2389
|
def conditionally_disable_expectations_monkey_patching; end
|
2319
2390
|
|
2320
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2391
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2311
|
2321
2392
|
def conditionally_disable_mocks_monkey_patching; end
|
2322
2393
|
|
2323
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2394
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2349
|
2324
2395
|
def configure_group_with(group, module_list, application_method); end
|
2325
2396
|
|
2326
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2397
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2284
|
2327
2398
|
def define_built_in_hooks; end
|
2328
2399
|
|
2329
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2400
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2407
|
2330
2401
|
def define_mixed_in_module(mod, filters, mod_list, config_method, &block); end
|
2331
2402
|
|
2332
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2403
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2259
|
2333
2404
|
def extract_location(path); end
|
2334
2405
|
|
2335
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2406
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2236
|
2336
2407
|
def file_glob_from(path, pattern); end
|
2337
2408
|
|
2338
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2409
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2225
|
2339
2410
|
def gather_directories(path); end
|
2340
2411
|
|
2341
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2412
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2204
|
2342
2413
|
def get_files_to_run(paths); end
|
2343
2414
|
|
2344
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2415
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2231
|
2345
2416
|
def get_matching_files(path, pattern); end
|
2346
2417
|
|
2347
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2418
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2171
|
2348
2419
|
def handle_suite_hook(scope, meta); end
|
2349
2420
|
|
2350
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2421
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2143
|
2351
2422
|
def load_file_handling_errors(method, file); end
|
2352
2423
|
|
2353
2424
|
# @return [Boolean]
|
2354
2425
|
#
|
2355
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2426
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2377
|
2356
2427
|
def metadata_applies_to_group?(meta, group); end
|
2357
2428
|
|
2358
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2429
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2369
|
2359
2430
|
def on_existing_matching_groups(meta); end
|
2360
2431
|
|
2361
2432
|
# @return [Boolean]
|
2362
2433
|
#
|
2363
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2434
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2307
|
2364
2435
|
def output_to_tty?(output = T.unsafe(nil)); end
|
2365
2436
|
|
2366
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2437
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2303
|
2367
2438
|
def output_wrapper; end
|
2368
2439
|
|
2369
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2440
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2216
|
2370
2441
|
def paths_to_check(paths); end
|
2371
2442
|
|
2372
2443
|
# @return [Boolean]
|
2373
2444
|
#
|
2374
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2445
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2221
|
2375
2446
|
def pattern_might_load_specs_from_vendored_dirs?; end
|
2376
2447
|
|
2377
2448
|
# @return [Boolean]
|
2378
2449
|
#
|
2379
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2450
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2330
|
2380
2451
|
def rspec_expectations_loaded?; end
|
2381
2452
|
|
2382
2453
|
# @return [Boolean]
|
2383
2454
|
#
|
2384
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2455
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2326
|
2385
2456
|
def rspec_mocks_loaded?; end
|
2386
2457
|
|
2387
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2458
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2186
|
2388
2459
|
def run_suite_hooks(hook_description, hooks); end
|
2389
2460
|
|
2390
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2461
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2392
|
2391
2462
|
def safe_extend(mod, host); end
|
2392
2463
|
|
2393
2464
|
# :nocov:
|
2394
2465
|
#
|
2395
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2466
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2388
|
2396
2467
|
def safe_include(mod, host); end
|
2397
2468
|
|
2398
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2469
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2382
|
2399
2470
|
def safe_prepend(mod, host); end
|
2400
2471
|
|
2401
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2472
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2334
|
2402
2473
|
def update_pattern_attr(name, value); end
|
2403
2474
|
|
2404
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2475
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#2280
|
2405
2476
|
def value_for(key); end
|
2406
2477
|
|
2407
2478
|
class << self
|
@@ -2437,14 +2508,14 @@ class RSpec::Core::Configuration
|
|
2437
2508
|
|
2438
2509
|
# @private
|
2439
2510
|
#
|
2440
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2511
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1671
|
2441
2512
|
def delegate_to_ordering_manager(*methods); end
|
2442
2513
|
end
|
2443
2514
|
end
|
2444
2515
|
|
2445
2516
|
# @private
|
2446
2517
|
#
|
2447
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2518
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1651
|
2448
2519
|
RSpec::Core::Configuration::DEFAULT_FORMATTER = T.let(T.unsafe(nil), Proc)
|
2449
2520
|
|
2450
2521
|
# This buffer is used to capture all messages sent to the reporter during
|
@@ -2454,33 +2525,33 @@ RSpec::Core::Configuration::DEFAULT_FORMATTER = T.let(T.unsafe(nil), Proc)
|
|
2454
2525
|
#
|
2455
2526
|
# @private
|
2456
2527
|
#
|
2457
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2528
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1039
|
2458
2529
|
class RSpec::Core::Configuration::DeprecationReporterBuffer
|
2459
2530
|
# @return [DeprecationReporterBuffer] a new instance of DeprecationReporterBuffer
|
2460
2531
|
#
|
2461
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2532
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1040
|
2462
2533
|
def initialize; end
|
2463
2534
|
|
2464
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2535
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1044
|
2465
2536
|
def deprecation(*args); end
|
2466
2537
|
|
2467
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2538
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1048
|
2468
2539
|
def play_onto(reporter); end
|
2469
2540
|
end
|
2470
2541
|
|
2471
2542
|
# @private
|
2472
2543
|
#
|
2473
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2544
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1821
|
2474
2545
|
module RSpec::Core::Configuration::ExposeCurrentExample; end
|
2475
2546
|
|
2476
2547
|
# @private
|
2477
2548
|
#
|
2478
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2549
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1126
|
2479
2550
|
RSpec::Core::Configuration::FAILED_STATUS = T.let(T.unsafe(nil), String)
|
2480
2551
|
|
2481
2552
|
# @private
|
2482
2553
|
#
|
2483
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2554
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#749
|
2484
2555
|
RSpec::Core::Configuration::MOCKING_ADAPTERS = T.let(T.unsafe(nil), Hash)
|
2485
2556
|
|
2486
2557
|
# @private
|
@@ -2490,17 +2561,17 @@ class RSpec::Core::Configuration::MustBeConfiguredBeforeExampleGroupsError < ::S
|
|
2490
2561
|
|
2491
2562
|
# @private
|
2492
2563
|
#
|
2493
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2564
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1129
|
2494
2565
|
RSpec::Core::Configuration::PASSED_STATUS = T.let(T.unsafe(nil), String)
|
2495
2566
|
|
2496
2567
|
# @private
|
2497
2568
|
#
|
2498
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2569
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1132
|
2499
2570
|
RSpec::Core::Configuration::PENDING_STATUS = T.let(T.unsafe(nil), String)
|
2500
2571
|
|
2501
2572
|
# @private
|
2502
2573
|
#
|
2503
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2574
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1770
|
2504
2575
|
RSpec::Core::Configuration::RAISE_ERROR_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
2505
2576
|
|
2506
2577
|
# Module that holds `attr_reader` declarations. It's in a separate
|
@@ -2558,6 +2629,9 @@ module RSpec::Core::Configuration::Readers
|
|
2558
2629
|
# source://rspec-core//lib/rspec/core/configuration.rb#63
|
2559
2630
|
def fixed_color; end
|
2560
2631
|
|
2632
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#63
|
2633
|
+
def full_cause_backtrace; end
|
2634
|
+
|
2561
2635
|
# source://rspec-core//lib/rspec/core/configuration.rb#63
|
2562
2636
|
def libs; end
|
2563
2637
|
|
@@ -2576,6 +2650,9 @@ module RSpec::Core::Configuration::Readers
|
|
2576
2650
|
# source://rspec-core//lib/rspec/core/configuration.rb#63
|
2577
2651
|
def pending_color; end
|
2578
2652
|
|
2653
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#63
|
2654
|
+
def pending_failure_output; end
|
2655
|
+
|
2579
2656
|
# source://rspec-core//lib/rspec/core/configuration.rb#63
|
2580
2657
|
def project_source_dirs; end
|
2581
2658
|
|
@@ -2606,12 +2683,12 @@ end
|
|
2606
2683
|
|
2607
2684
|
# @private
|
2608
2685
|
#
|
2609
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2686
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1123
|
2610
2687
|
RSpec::Core::Configuration::UNKNOWN_STATUS = T.let(T.unsafe(nil), String)
|
2611
2688
|
|
2612
2689
|
# @private
|
2613
2690
|
#
|
2614
|
-
# source://rspec-core//lib/rspec/core/configuration.rb#
|
2691
|
+
# source://rspec-core//lib/rspec/core/configuration.rb#1135
|
2615
2692
|
RSpec::Core::Configuration::VALID_STATUSES = T.let(T.unsafe(nil), Array)
|
2616
2693
|
|
2617
2694
|
# Responsible for utilizing externally provided configuration options,
|
@@ -2655,22 +2732,24 @@ class RSpec::Core::ConfigurationOptions
|
|
2655
2732
|
|
2656
2733
|
private
|
2657
2734
|
|
2658
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2735
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#173
|
2659
2736
|
def args_from_options_file(path); end
|
2660
2737
|
|
2661
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2738
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#142
|
2662
2739
|
def command_line_options; end
|
2663
2740
|
|
2664
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2741
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#146
|
2665
2742
|
def custom_options; end
|
2666
2743
|
|
2667
|
-
#
|
2744
|
+
# :nocov:
|
2745
|
+
#
|
2746
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#190
|
2668
2747
|
def custom_options_file; end
|
2669
2748
|
|
2670
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2749
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#133
|
2671
2750
|
def env_options; end
|
2672
2751
|
|
2673
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2752
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#125
|
2674
2753
|
def file_options; end
|
2675
2754
|
|
2676
2755
|
# @return [Boolean]
|
@@ -2678,28 +2757,30 @@ class RSpec::Core::ConfigurationOptions
|
|
2678
2757
|
# source://rspec-core//lib/rspec/core/configuration_options.rb#66
|
2679
2758
|
def force?(key); end
|
2680
2759
|
|
2681
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2760
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#158
|
2682
2761
|
def global_options; end
|
2683
2762
|
|
2684
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2763
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#202
|
2685
2764
|
def global_options_file; end
|
2686
2765
|
|
2687
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2766
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#213
|
2688
2767
|
def home_options_file_path; end
|
2689
2768
|
|
2690
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2769
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#121
|
2691
2770
|
def load_formatters_into(config); end
|
2692
2771
|
|
2693
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2772
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#150
|
2694
2773
|
def local_options; end
|
2695
2774
|
|
2696
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2775
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#198
|
2697
2776
|
def local_options_file; end
|
2698
2777
|
|
2699
|
-
#
|
2778
|
+
# :nocov:
|
2779
|
+
#
|
2780
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#181
|
2700
2781
|
def options_file_as_erb_string(path); end
|
2701
2782
|
|
2702
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2783
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#162
|
2703
2784
|
def options_from(path); end
|
2704
2785
|
|
2705
2786
|
# source://rspec-core//lib/rspec/core/configuration_options.rb#70
|
@@ -2708,25 +2789,25 @@ class RSpec::Core::ConfigurationOptions
|
|
2708
2789
|
# source://rspec-core//lib/rspec/core/configuration_options.rb#44
|
2709
2790
|
def organize_options; end
|
2710
2791
|
|
2711
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2792
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#167
|
2712
2793
|
def parse_args_ignoring_files_or_dirs_to_run(args, source); end
|
2713
2794
|
|
2714
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2795
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#113
|
2715
2796
|
def process_options_into(config); end
|
2716
2797
|
|
2717
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2798
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#154
|
2718
2799
|
def project_options; end
|
2719
2800
|
|
2720
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2801
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#194
|
2721
2802
|
def project_options_file; end
|
2722
2803
|
|
2723
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2804
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#229
|
2724
2805
|
def resolve_xdg_config_home; end
|
2725
2806
|
|
2726
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2807
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#206
|
2727
2808
|
def xdg_options_file_if_exists; end
|
2728
2809
|
|
2729
|
-
# source://rspec-core//lib/rspec/core/configuration_options.rb#
|
2810
|
+
# source://rspec-core//lib/rspec/core/configuration_options.rb#222
|
2730
2811
|
def xdg_options_file_path; end
|
2731
2812
|
end
|
2732
2813
|
|
@@ -2834,8 +2915,9 @@ class RSpec::Core::DidYouMean
|
|
2834
2915
|
def initialize(relative_file_name); end
|
2835
2916
|
|
2836
2917
|
# return a hint if API for ::DidYouMean::SpellChecker not supported
|
2918
|
+
# :nocov:
|
2837
2919
|
#
|
2838
|
-
# source://rspec-core//lib/rspec/core/did_you_mean.rb#
|
2920
|
+
# source://rspec-core//lib/rspec/core/did_you_mean.rb#15
|
2839
2921
|
def call; end
|
2840
2922
|
|
2841
2923
|
# Returns the value of attribute relative_file_name.
|
@@ -2845,13 +2927,15 @@ class RSpec::Core::DidYouMean
|
|
2845
2927
|
|
2846
2928
|
private
|
2847
2929
|
|
2848
|
-
#
|
2930
|
+
# :nocov:
|
2931
|
+
#
|
2932
|
+
# source://rspec-core//lib/rspec/core/did_you_mean.rb#35
|
2849
2933
|
def formats(probables); end
|
2850
2934
|
|
2851
|
-
# source://rspec-core//lib/rspec/core/did_you_mean.rb#
|
2935
|
+
# source://rspec-core//lib/rspec/core/did_you_mean.rb#45
|
2852
2936
|
def red_font(mytext); end
|
2853
2937
|
|
2854
|
-
# source://rspec-core//lib/rspec/core/did_you_mean.rb#
|
2938
|
+
# source://rspec-core//lib/rspec/core/did_you_mean.rb#40
|
2855
2939
|
def top_and_tail(rspec_format); end
|
2856
2940
|
end
|
2857
2941
|
|
@@ -2940,7 +3024,7 @@ class RSpec::Core::Example
|
|
2940
3024
|
#
|
2941
3025
|
# @private
|
2942
3026
|
#
|
2943
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3027
|
+
# source://rspec-core//lib/rspec/core/example.rb#388
|
2944
3028
|
def display_exception; end
|
2945
3029
|
|
2946
3030
|
# Assigns the exception that will be displayed to the user -- either the failure of
|
@@ -2948,7 +3032,7 @@ class RSpec::Core::Example
|
|
2948
3032
|
#
|
2949
3033
|
# @private
|
2950
3034
|
#
|
2951
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3035
|
+
# source://rspec-core//lib/rspec/core/example.rb#396
|
2952
3036
|
def display_exception=(ex); end
|
2953
3037
|
|
2954
3038
|
# Duplicates the example and overrides metadata with the provided
|
@@ -2993,7 +3077,7 @@ class RSpec::Core::Example
|
|
2993
3077
|
#
|
2994
3078
|
# @private
|
2995
3079
|
#
|
2996
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3080
|
+
# source://rspec-core//lib/rspec/core/example.rb#439
|
2997
3081
|
def fail_with_exception(reporter, exception); end
|
2998
3082
|
|
2999
3083
|
# @return [String] the relative path to the file where this example was
|
@@ -3026,7 +3110,7 @@ class RSpec::Core::Example
|
|
3026
3110
|
|
3027
3111
|
# @private
|
3028
3112
|
#
|
3029
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3113
|
+
# source://rspec-core//lib/rspec/core/example.rb#456
|
3030
3114
|
def instance_exec(*args, &block); end
|
3031
3115
|
|
3032
3116
|
# @return [String] the exact source location of this example in a form
|
@@ -3086,7 +3170,7 @@ class RSpec::Core::Example
|
|
3086
3170
|
#
|
3087
3171
|
# @private
|
3088
3172
|
#
|
3089
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3173
|
+
# source://rspec-core//lib/rspec/core/example.rb#425
|
3090
3174
|
def set_aggregate_failures_exception(exception); end
|
3091
3175
|
|
3092
3176
|
# Used internally to set an exception in an after hook, which
|
@@ -3094,7 +3178,7 @@ class RSpec::Core::Example
|
|
3094
3178
|
#
|
3095
3179
|
# @private
|
3096
3180
|
#
|
3097
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3181
|
+
# source://rspec-core//lib/rspec/core/example.rb#412
|
3098
3182
|
def set_exception(exception); end
|
3099
3183
|
|
3100
3184
|
# @return [Boolean] flag that will cause the example to not run.
|
@@ -3108,7 +3192,7 @@ class RSpec::Core::Example
|
|
3108
3192
|
#
|
3109
3193
|
# @private
|
3110
3194
|
#
|
3111
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3195
|
+
# source://rspec-core//lib/rspec/core/example.rb#449
|
3112
3196
|
def skip_with_exception(reporter, exception); end
|
3113
3197
|
|
3114
3198
|
# @return [Boolean]
|
@@ -3128,45 +3212,45 @@ class RSpec::Core::Example
|
|
3128
3212
|
|
3129
3213
|
private
|
3130
3214
|
|
3131
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3215
|
+
# source://rspec-core//lib/rspec/core/example.rb#534
|
3132
3216
|
def assign_generated_description; end
|
3133
3217
|
|
3134
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3218
|
+
# source://rspec-core//lib/rspec/core/example.rb#478
|
3135
3219
|
def finish(reporter); end
|
3136
3220
|
|
3137
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3221
|
+
# source://rspec-core//lib/rspec/core/example.rb#543
|
3138
3222
|
def generate_description; end
|
3139
3223
|
|
3140
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3224
|
+
# source://rspec-core//lib/rspec/core/example.rb#462
|
3141
3225
|
def hooks; end
|
3142
3226
|
|
3143
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3227
|
+
# source://rspec-core//lib/rspec/core/example.rb#550
|
3144
3228
|
def location_description; end
|
3145
3229
|
|
3146
3230
|
# @return [Boolean]
|
3147
3231
|
#
|
3148
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3232
|
+
# source://rspec-core//lib/rspec/core/example.rb#530
|
3149
3233
|
def mocks_need_verification?; end
|
3150
3234
|
|
3151
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3235
|
+
# source://rspec-core//lib/rspec/core/example.rb#498
|
3152
3236
|
def record_finished(status, reporter); end
|
3153
3237
|
|
3154
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3238
|
+
# source://rspec-core//lib/rspec/core/example.rb#516
|
3155
3239
|
def run_after_example; end
|
3156
3240
|
|
3157
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3241
|
+
# source://rspec-core//lib/rspec/core/example.rb#503
|
3158
3242
|
def run_before_example; end
|
3159
3243
|
|
3160
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3244
|
+
# source://rspec-core//lib/rspec/core/example.rb#473
|
3161
3245
|
def start(reporter); end
|
3162
3246
|
|
3163
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3247
|
+
# source://rspec-core//lib/rspec/core/example.rb#524
|
3164
3248
|
def verify_mocks; end
|
3165
3249
|
|
3166
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3250
|
+
# source://rspec-core//lib/rspec/core/example.rb#508
|
3167
3251
|
def with_around_and_singleton_context_hooks; end
|
3168
3252
|
|
3169
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3253
|
+
# source://rspec-core//lib/rspec/core/example.rb#466
|
3170
3254
|
def with_around_example_hooks; end
|
3171
3255
|
|
3172
3256
|
class << self
|
@@ -3186,13 +3270,13 @@ end
|
|
3186
3270
|
|
3187
3271
|
# @private
|
3188
3272
|
#
|
3189
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3273
|
+
# source://rspec-core//lib/rspec/core/example.rb#310
|
3190
3274
|
RSpec::Core::Example::AllExceptionsExcludingDangerousOnesOnRubiesThatAllowIt = RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
|
3191
3275
|
|
3192
3276
|
# Represents the result of executing an example.
|
3193
3277
|
# Behaves like a hash for backwards compatibility.
|
3194
3278
|
#
|
3195
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3279
|
+
# source://rspec-core//lib/rspec/core/example.rb#556
|
3196
3280
|
class RSpec::Core::Example::ExecutionResult
|
3197
3281
|
include ::RSpec::Core::HashImitatable
|
3198
3282
|
extend ::RSpec::Core::HashImitatable::ClassMethods
|
@@ -3201,7 +3285,7 @@ class RSpec::Core::Example::ExecutionResult
|
|
3201
3285
|
#
|
3202
3286
|
# @api private
|
3203
3287
|
#
|
3204
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3288
|
+
# source://rspec-core//lib/rspec/core/example.rb#610
|
3205
3289
|
def ensure_timing_set(clock); end
|
3206
3290
|
|
3207
3291
|
# @return [Boolean] Indicates if the example was completely skipped
|
@@ -3210,7 +3294,7 @@ class RSpec::Core::Example::ExecutionResult
|
|
3210
3294
|
# that were marked as `:pending`, which causes them to be run, and produces a
|
3211
3295
|
# `:failed` result if the example passes.
|
3212
3296
|
#
|
3213
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3297
|
+
# source://rspec-core//lib/rspec/core/example.rb#597
|
3214
3298
|
def example_skipped?; end
|
3215
3299
|
|
3216
3300
|
# @return [Exception, nil] The failure, if there was one.
|
@@ -3263,7 +3347,7 @@ class RSpec::Core::Example::ExecutionResult
|
|
3263
3347
|
|
3264
3348
|
# @return [Boolean]
|
3265
3349
|
#
|
3266
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3350
|
+
# source://rspec-core//lib/rspec/core/example.rb#588
|
3267
3351
|
def pending_fixed?; end
|
3268
3352
|
|
3269
3353
|
# @return [String, nil] The reason the example was pending,
|
@@ -3282,7 +3366,7 @@ class RSpec::Core::Example::ExecutionResult
|
|
3282
3366
|
#
|
3283
3367
|
# @api private
|
3284
3368
|
#
|
3285
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3369
|
+
# source://rspec-core//lib/rspec/core/example.rb#603
|
3286
3370
|
def record_finished(status, finished_at); end
|
3287
3371
|
|
3288
3372
|
# @return [Float] How long the example took in seconds.
|
@@ -3317,22 +3401,22 @@ class RSpec::Core::Example::ExecutionResult
|
|
3317
3401
|
|
3318
3402
|
private
|
3319
3403
|
|
3320
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3404
|
+
# source://rspec-core//lib/rspec/core/example.rb#616
|
3321
3405
|
def calculate_run_time(finished_at); end
|
3322
3406
|
|
3323
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3407
|
+
# source://rspec-core//lib/rspec/core/example.rb#634
|
3324
3408
|
def get_value(name); end
|
3325
3409
|
|
3326
3410
|
# For backwards compatibility we present `status` as a string
|
3327
3411
|
# when presenting the legacy hash interface.
|
3328
3412
|
#
|
3329
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3413
|
+
# source://rspec-core//lib/rspec/core/example.rb#623
|
3330
3414
|
def hash_for_delegation; end
|
3331
3415
|
|
3332
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3416
|
+
# source://rspec-core//lib/rspec/core/example.rb#642
|
3333
3417
|
def issue_deprecation(_method_name, *_args); end
|
3334
3418
|
|
3335
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3419
|
+
# source://rspec-core//lib/rspec/core/example.rb#629
|
3336
3420
|
def set_value(name, value); end
|
3337
3421
|
end
|
3338
3422
|
|
@@ -3354,166 +3438,166 @@ end
|
|
3354
3438
|
# @note This class also exposes the instance methods of {Example},
|
3355
3439
|
# proxying them through to the wrapped {Example} instance.
|
3356
3440
|
#
|
3357
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3441
|
+
# source://rspec-core//lib/rspec/core/example.rb#331
|
3358
3442
|
class RSpec::Core::Example::Procsy
|
3359
3443
|
# @return [Procsy] a new instance of Procsy
|
3360
3444
|
#
|
3361
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3445
|
+
# source://rspec-core//lib/rspec/core/example.rb#362
|
3362
3446
|
def initialize(example, &block); end
|
3363
3447
|
|
3364
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3448
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3365
3449
|
def <<(*a, &b); end
|
3366
3450
|
|
3367
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3451
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3368
3452
|
def ==(*a, &b); end
|
3369
3453
|
|
3370
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3454
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3371
3455
|
def ===(*a, &b); end
|
3372
3456
|
|
3373
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3457
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3374
3458
|
def >>(*a, &b); end
|
3375
3459
|
|
3376
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3460
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3377
3461
|
def [](*a, &b); end
|
3378
3462
|
|
3379
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3463
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3380
3464
|
def arity(*a, &b); end
|
3381
3465
|
|
3382
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3466
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3383
3467
|
def binding(*a, &b); end
|
3384
3468
|
|
3385
3469
|
# Calls the proc and notes that the example has been executed.
|
3386
3470
|
#
|
3387
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3471
|
+
# source://rspec-core//lib/rspec/core/example.rb#350
|
3388
3472
|
def call(*args, &block); end
|
3389
3473
|
|
3390
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3474
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3391
3475
|
def clock(*a, &b); end
|
3392
3476
|
|
3393
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3477
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3394
3478
|
def clock=(*a, &b); end
|
3395
3479
|
|
3396
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3480
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3397
3481
|
def clone(*a, &b); end
|
3398
3482
|
|
3399
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3483
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3400
3484
|
def curry(*a, &b); end
|
3401
3485
|
|
3402
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3486
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3403
3487
|
def description(*a, &b); end
|
3404
3488
|
|
3405
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3489
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3406
3490
|
def dup(*a, &b); end
|
3407
3491
|
|
3408
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3492
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3409
3493
|
def duplicate_with(*a, &b); end
|
3410
3494
|
|
3411
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3495
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3412
3496
|
def eql?(*a, &b); end
|
3413
3497
|
|
3414
3498
|
# The {Example} instance.
|
3415
3499
|
#
|
3416
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3500
|
+
# source://rspec-core//lib/rspec/core/example.rb#333
|
3417
3501
|
def example; end
|
3418
3502
|
|
3419
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3503
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3420
3504
|
def example_group(*a, &b); end
|
3421
3505
|
|
3422
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3506
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3423
3507
|
def example_group_instance(*a, &b); end
|
3424
3508
|
|
3425
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3509
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3426
3510
|
def exception(*a, &b); end
|
3427
3511
|
|
3428
3512
|
# Indicates whether or not the around hook has executed the example.
|
3429
3513
|
#
|
3430
3514
|
# @return [Boolean]
|
3431
3515
|
#
|
3432
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3516
|
+
# source://rspec-core//lib/rspec/core/example.rb#374
|
3433
3517
|
def executed?; end
|
3434
3518
|
|
3435
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3519
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3436
3520
|
def execution_result(*a, &b); end
|
3437
3521
|
|
3438
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3522
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3439
3523
|
def file_path(*a, &b); end
|
3440
3524
|
|
3441
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3525
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3442
3526
|
def full_description(*a, &b); end
|
3443
3527
|
|
3444
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3528
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3445
3529
|
def hash(*a, &b); end
|
3446
3530
|
|
3447
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3531
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3448
3532
|
def id(*a, &b); end
|
3449
3533
|
|
3450
3534
|
# @private
|
3451
3535
|
#
|
3452
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3536
|
+
# source://rspec-core//lib/rspec/core/example.rb#379
|
3453
3537
|
def inspect; end
|
3454
3538
|
|
3455
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3539
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3456
3540
|
def inspect_output(*a, &b); end
|
3457
3541
|
|
3458
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3542
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3459
3543
|
def lambda?(*a, &b); end
|
3460
3544
|
|
3461
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3545
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3462
3546
|
def location(*a, &b); end
|
3463
3547
|
|
3464
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3548
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3465
3549
|
def location_rerun_argument(*a, &b); end
|
3466
3550
|
|
3467
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3551
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3468
3552
|
def metadata(*a, &b); end
|
3469
3553
|
|
3470
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3554
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3471
3555
|
def parameters(*a, &b); end
|
3472
3556
|
|
3473
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3557
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3474
3558
|
def pending(*a, &b); end
|
3475
3559
|
|
3476
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3560
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3477
3561
|
def pending?(*a, &b); end
|
3478
3562
|
|
3479
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3563
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3480
3564
|
def reporter(*a, &b); end
|
3481
3565
|
|
3482
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3566
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3483
3567
|
def rerun_argument(*a, &b); end
|
3484
3568
|
|
3485
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3569
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3486
3570
|
def ruby2_keywords(*a, &b); end
|
3487
3571
|
|
3488
3572
|
# Calls the proc and notes that the example has been executed.
|
3489
3573
|
#
|
3490
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3574
|
+
# source://rspec-core//lib/rspec/core/example.rb#350
|
3491
3575
|
def run(*args, &block); end
|
3492
3576
|
|
3493
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3577
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3494
3578
|
def skip(*a, &b); end
|
3495
3579
|
|
3496
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3580
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3497
3581
|
def skipped?(*a, &b); end
|
3498
3582
|
|
3499
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3583
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3500
3584
|
def source_location(*a, &b); end
|
3501
3585
|
|
3502
3586
|
# Provides a wrapped proc that will update our `executed?` state when
|
3503
3587
|
# executed.
|
3504
3588
|
#
|
3505
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3589
|
+
# source://rspec-core//lib/rspec/core/example.rb#358
|
3506
3590
|
def to_proc; end
|
3507
3591
|
|
3508
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3592
|
+
# source://rspec-core//lib/rspec/core/example.rb#339
|
3509
3593
|
def update_inherited_metadata(*a, &b); end
|
3510
3594
|
|
3511
3595
|
# @private
|
3512
3596
|
#
|
3513
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3597
|
+
# source://rspec-core//lib/rspec/core/example.rb#369
|
3514
3598
|
def wrap(&block); end
|
3515
3599
|
|
3516
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
3600
|
+
# source://rspec-core//lib/rspec/core/example.rb#346
|
3517
3601
|
def yield(*a, &b); end
|
3518
3602
|
end
|
3519
3603
|
|
@@ -3548,7 +3632,7 @@ class RSpec::Core::ExampleGroup
|
|
3548
3632
|
extend ::RSpec::Core::MemoizedHelpers::ClassMethods
|
3549
3633
|
extend ::RSpec::Core::SharedExampleGroup
|
3550
3634
|
|
3551
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3635
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#714
|
3552
3636
|
def initialize(inspect_output = T.unsafe(nil)); end
|
3553
3637
|
|
3554
3638
|
# Returns the class or module passed to the `describe` method (or alias).
|
@@ -3564,31 +3648,67 @@ class RSpec::Core::ExampleGroup
|
|
3564
3648
|
# source://rspec-core//lib/rspec/core/example_group.rb#99
|
3565
3649
|
def described_class; end
|
3566
3650
|
|
3567
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3651
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#720
|
3568
3652
|
def inspect; end
|
3569
3653
|
|
3570
3654
|
private
|
3571
3655
|
|
3572
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3656
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#765
|
3573
3657
|
def method_missing(name, *args, **_arg2); end
|
3574
3658
|
|
3575
3659
|
class << self
|
3576
3660
|
# Adds an example to the example group
|
3577
3661
|
#
|
3578
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3662
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#374
|
3579
3663
|
def add_example(example); end
|
3580
3664
|
|
3581
3665
|
# @private
|
3582
3666
|
#
|
3583
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3667
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#536
|
3584
3668
|
def before_context_ivars; end
|
3585
3669
|
|
3586
3670
|
# @private
|
3587
3671
|
#
|
3588
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3672
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#473
|
3589
3673
|
def children; end
|
3590
3674
|
|
3591
|
-
#
|
3675
|
+
# An alias of `example_group`. Generally used when grouping examples
|
3676
|
+
# contextually (e.g. "with xyz", "when xyz" or "if xyz").
|
3677
|
+
# Generates a subclass of this example group which inherits
|
3678
|
+
# everything except the examples themselves.
|
3679
|
+
#
|
3680
|
+
# @example
|
3681
|
+
#
|
3682
|
+
# RSpec.describe "something" do # << This describe method is defined in
|
3683
|
+
# # << RSpec::Core::DSL, included in the
|
3684
|
+
# # << global namespace (optional)
|
3685
|
+
# before do
|
3686
|
+
# do_something_before
|
3687
|
+
# end
|
3688
|
+
#
|
3689
|
+
# before(:example, :clean_env) do
|
3690
|
+
# env.clear!
|
3691
|
+
# end
|
3692
|
+
#
|
3693
|
+
# let(:thing) { Thing.new }
|
3694
|
+
#
|
3695
|
+
# context "attribute (of something)" do
|
3696
|
+
# # examples in the group get the before hook
|
3697
|
+
# # declared above, and can access `thing`
|
3698
|
+
# end
|
3699
|
+
#
|
3700
|
+
# context "needs additional setup", :clean_env, :implementation => JSON do
|
3701
|
+
# # specifies that hooks with matching metadata
|
3702
|
+
# # should be be run additionally
|
3703
|
+
# end
|
3704
|
+
# end
|
3705
|
+
# @overload context
|
3706
|
+
# @overload context
|
3707
|
+
# @overload context
|
3708
|
+
# @return [RSpec::Core::ExampleGroup]
|
3709
|
+
# @see example_group
|
3710
|
+
#
|
3711
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#249
|
3592
3712
|
def context(*args, &example_group_block); end
|
3593
3713
|
|
3594
3714
|
# Returns true if a `before(:context)` or `after(:context)`
|
@@ -3596,18 +3716,18 @@ class RSpec::Core::ExampleGroup
|
|
3596
3716
|
#
|
3597
3717
|
# @return [Boolean]
|
3598
3718
|
#
|
3599
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3719
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#549
|
3600
3720
|
def currently_executing_a_context_hook?; end
|
3601
3721
|
|
3602
3722
|
# @private
|
3603
3723
|
#
|
3604
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3724
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#674
|
3605
3725
|
def declaration_locations; end
|
3606
3726
|
|
3607
3727
|
# @private
|
3608
3728
|
# @see DSL#describe
|
3609
3729
|
#
|
3610
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3730
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#248
|
3611
3731
|
def define_example_group_method(name, metadata = T.unsafe(nil)); end
|
3612
3732
|
|
3613
3733
|
# @example
|
@@ -3621,7 +3741,7 @@ class RSpec::Core::ExampleGroup
|
|
3621
3741
|
|
3622
3742
|
# @private
|
3623
3743
|
#
|
3624
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3744
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#324
|
3625
3745
|
def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end
|
3626
3746
|
|
3627
3747
|
# @private
|
@@ -3631,15 +3751,51 @@ class RSpec::Core::ExampleGroup
|
|
3631
3751
|
|
3632
3752
|
# @private
|
3633
3753
|
#
|
3634
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3754
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#467
|
3635
3755
|
def descendant_filtered_examples; end
|
3636
3756
|
|
3637
3757
|
# @private
|
3638
3758
|
#
|
3639
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3759
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#510
|
3640
3760
|
def descendants; end
|
3641
3761
|
|
3642
|
-
#
|
3762
|
+
# An alias of `example_group`. Generally used when grouping examples by a
|
3763
|
+
# thing you are describing (e.g. an object, class or method).
|
3764
|
+
# Generates a subclass of this example group which inherits
|
3765
|
+
# everything except the examples themselves.
|
3766
|
+
#
|
3767
|
+
# @example
|
3768
|
+
#
|
3769
|
+
# RSpec.describe "something" do # << This describe method is defined in
|
3770
|
+
# # << RSpec::Core::DSL, included in the
|
3771
|
+
# # << global namespace (optional)
|
3772
|
+
# before do
|
3773
|
+
# do_something_before
|
3774
|
+
# end
|
3775
|
+
#
|
3776
|
+
# before(:example, :clean_env) do
|
3777
|
+
# env.clear!
|
3778
|
+
# end
|
3779
|
+
#
|
3780
|
+
# let(:thing) { Thing.new }
|
3781
|
+
#
|
3782
|
+
# describe "attribute (of something)" do
|
3783
|
+
# # examples in the group get the before hook
|
3784
|
+
# # declared above, and can access `thing`
|
3785
|
+
# end
|
3786
|
+
#
|
3787
|
+
# describe "needs additional setup", :clean_env, :implementation => JSON do
|
3788
|
+
# # specifies that hooks with matching metadata
|
3789
|
+
# # should be be run additionally
|
3790
|
+
# end
|
3791
|
+
# end
|
3792
|
+
# @overload describe
|
3793
|
+
# @overload describe
|
3794
|
+
# @overload describe
|
3795
|
+
# @return [RSpec::Core::ExampleGroup]
|
3796
|
+
# @see example_group
|
3797
|
+
#
|
3798
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#249
|
3643
3799
|
def describe(*args, &example_group_block); end
|
3644
3800
|
|
3645
3801
|
# source://rspec-core//lib/rspec/core/example_group.rb#78
|
@@ -3652,12 +3808,12 @@ class RSpec::Core::ExampleGroup
|
|
3652
3808
|
|
3653
3809
|
# @private
|
3654
3810
|
#
|
3655
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3811
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#707
|
3656
3812
|
def each_instance_variable_for_example(group); end
|
3657
3813
|
|
3658
3814
|
# @private
|
3659
3815
|
#
|
3660
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3816
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#525
|
3661
3817
|
def ensure_example_groups_are_configured; end
|
3662
3818
|
|
3663
3819
|
# Defines an example within a group.
|
@@ -3687,18 +3843,121 @@ class RSpec::Core::ExampleGroup
|
|
3687
3843
|
# source://rspec-core//lib/rspec/core/example_group.rb#146
|
3688
3844
|
def example(*all_args, &block); end
|
3689
3845
|
|
3690
|
-
#
|
3846
|
+
# Generates a subclass of this example group which inherits
|
3847
|
+
# everything except the examples themselves.
|
3848
|
+
#
|
3849
|
+
# @example
|
3850
|
+
#
|
3851
|
+
# RSpec.describe "something" do # << This describe method is defined in
|
3852
|
+
# # << RSpec::Core::DSL, included in the
|
3853
|
+
# # << global namespace (optional)
|
3854
|
+
# before do
|
3855
|
+
# do_something_before
|
3856
|
+
# end
|
3857
|
+
#
|
3858
|
+
# before(:example, :clean_env) do
|
3859
|
+
# env.clear!
|
3860
|
+
# end
|
3861
|
+
#
|
3862
|
+
# let(:thing) { Thing.new }
|
3863
|
+
#
|
3864
|
+
# example_group "attribute (of something)" do
|
3865
|
+
# # examples in the group get the before hook
|
3866
|
+
# # declared above, and can access `thing`
|
3867
|
+
# end
|
3868
|
+
#
|
3869
|
+
# example_group "needs additional setup", :clean_env, :implementation => JSON do
|
3870
|
+
# # specifies that hooks with matching metadata
|
3871
|
+
# # should be be run additionally
|
3872
|
+
# end
|
3873
|
+
# end
|
3874
|
+
# @overload example_group
|
3875
|
+
# @overload example_group
|
3876
|
+
# @overload example_group
|
3877
|
+
# @return [RSpec::Core::ExampleGroup]
|
3878
|
+
#
|
3879
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#249
|
3691
3880
|
def example_group(*args, &example_group_block); end
|
3692
3881
|
|
3693
3882
|
# @private
|
3694
3883
|
#
|
3695
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3884
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#457
|
3696
3885
|
def examples; end
|
3697
3886
|
|
3698
|
-
#
|
3887
|
+
# Shortcut to define an example group with `:focus => true`.
|
3888
|
+
# Generates a subclass of this example group which inherits
|
3889
|
+
# everything except the examples themselves.
|
3890
|
+
#
|
3891
|
+
# @example
|
3892
|
+
#
|
3893
|
+
# RSpec.describe "something" do # << This describe method is defined in
|
3894
|
+
# # << RSpec::Core::DSL, included in the
|
3895
|
+
# # << global namespace (optional)
|
3896
|
+
# before do
|
3897
|
+
# do_something_before
|
3898
|
+
# end
|
3899
|
+
#
|
3900
|
+
# before(:example, :clean_env) do
|
3901
|
+
# env.clear!
|
3902
|
+
# end
|
3903
|
+
#
|
3904
|
+
# let(:thing) { Thing.new }
|
3905
|
+
#
|
3906
|
+
# fcontext "attribute (of something)" do
|
3907
|
+
# # examples in the group get the before hook
|
3908
|
+
# # declared above, and can access `thing`
|
3909
|
+
# end
|
3910
|
+
#
|
3911
|
+
# fcontext "needs additional setup", :clean_env, :implementation => JSON do
|
3912
|
+
# # specifies that hooks with matching metadata
|
3913
|
+
# # should be be run additionally
|
3914
|
+
# end
|
3915
|
+
# end
|
3916
|
+
# @overload fcontext
|
3917
|
+
# @overload fcontext
|
3918
|
+
# @overload fcontext
|
3919
|
+
# @return [RSpec::Core::ExampleGroup]
|
3920
|
+
# @see example_group
|
3921
|
+
#
|
3922
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#249
|
3699
3923
|
def fcontext(*args, &example_group_block); end
|
3700
3924
|
|
3701
|
-
#
|
3925
|
+
# Shortcut to define an example group with `:focus => true`.
|
3926
|
+
# Generates a subclass of this example group which inherits
|
3927
|
+
# everything except the examples themselves.
|
3928
|
+
#
|
3929
|
+
# @example
|
3930
|
+
#
|
3931
|
+
# RSpec.describe "something" do # << This describe method is defined in
|
3932
|
+
# # << RSpec::Core::DSL, included in the
|
3933
|
+
# # << global namespace (optional)
|
3934
|
+
# before do
|
3935
|
+
# do_something_before
|
3936
|
+
# end
|
3937
|
+
#
|
3938
|
+
# before(:example, :clean_env) do
|
3939
|
+
# env.clear!
|
3940
|
+
# end
|
3941
|
+
#
|
3942
|
+
# let(:thing) { Thing.new }
|
3943
|
+
#
|
3944
|
+
# fdescribe "attribute (of something)" do
|
3945
|
+
# # examples in the group get the before hook
|
3946
|
+
# # declared above, and can access `thing`
|
3947
|
+
# end
|
3948
|
+
#
|
3949
|
+
# fdescribe "needs additional setup", :clean_env, :implementation => JSON do
|
3950
|
+
# # specifies that hooks with matching metadata
|
3951
|
+
# # should be be run additionally
|
3952
|
+
# end
|
3953
|
+
# end
|
3954
|
+
# @overload fdescribe
|
3955
|
+
# @overload fdescribe
|
3956
|
+
# @overload fdescribe
|
3957
|
+
# @return [RSpec::Core::ExampleGroup]
|
3958
|
+
# @see example_group
|
3959
|
+
#
|
3960
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#249
|
3702
3961
|
def fdescribe(*args, &example_group_block); end
|
3703
3962
|
|
3704
3963
|
# Shortcut to define an example with `:focus => true`.
|
@@ -3734,12 +3993,12 @@ class RSpec::Core::ExampleGroup
|
|
3734
3993
|
|
3735
3994
|
# @private
|
3736
3995
|
#
|
3737
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
3996
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#462
|
3738
3997
|
def filtered_examples; end
|
3739
3998
|
|
3740
3999
|
# @private
|
3741
4000
|
#
|
3742
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4001
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#386
|
3743
4002
|
def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end
|
3744
4003
|
|
3745
4004
|
# Shortcut to define an example with `:focus => true`.
|
@@ -3800,7 +4059,7 @@ class RSpec::Core::ExampleGroup
|
|
3800
4059
|
|
3801
4060
|
# @private
|
3802
4061
|
#
|
3803
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4062
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#662
|
3804
4063
|
def for_filtered_examples(reporter, &block); end
|
3805
4064
|
|
3806
4065
|
# Shortcut to define an example with `:focus => true`.
|
@@ -3834,7 +4093,7 @@ class RSpec::Core::ExampleGroup
|
|
3834
4093
|
# @return [String] the unique id of this example group. Pass
|
3835
4094
|
# this at the command line to re-run this exact example group.
|
3836
4095
|
#
|
3837
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4096
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#682
|
3838
4097
|
def id; end
|
3839
4098
|
|
3840
4099
|
# Define a singleton method for the singleton class (remove the method if
|
@@ -3852,7 +4111,7 @@ class RSpec::Core::ExampleGroup
|
|
3852
4111
|
#
|
3853
4112
|
# @see SharedExampleGroup
|
3854
4113
|
#
|
3855
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4114
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#350
|
3856
4115
|
def include_context(name, *args, &block); end
|
3857
4116
|
|
3858
4117
|
# Includes shared content mapped to `name` directly in the group in which
|
@@ -3862,7 +4121,7 @@ class RSpec::Core::ExampleGroup
|
|
3862
4121
|
#
|
3863
4122
|
# @see SharedExampleGroup
|
3864
4123
|
#
|
3865
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4124
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#360
|
3866
4125
|
def include_examples(name, *args, &block); end
|
3867
4126
|
|
3868
4127
|
# Defines an example within a group.
|
@@ -3893,10 +4152,20 @@ class RSpec::Core::ExampleGroup
|
|
3893
4152
|
# source://rspec-core//lib/rspec/core/example_group.rb#146
|
3894
4153
|
def it(*all_args, &block); end
|
3895
4154
|
|
3896
|
-
#
|
4155
|
+
# @param name [String, Symbol] The name of the shared group to include.
|
4156
|
+
# @param args [Array] Pass parameters to a shared example group
|
4157
|
+
# @param block [Block] Additional context to pass to the shared group.
|
4158
|
+
# @return [RSpec::Core::ExampleGroup]
|
4159
|
+
#
|
4160
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#325
|
3897
4161
|
def it_behaves_like(name, *args, &customization_block); end
|
3898
4162
|
|
3899
|
-
#
|
4163
|
+
# @param name [String, Symbol] The name of the shared group to include.
|
4164
|
+
# @param args [Array] Pass parameters to a shared example group
|
4165
|
+
# @param block [Block] Additional context to pass to the shared group.
|
4166
|
+
# @return [RSpec::Core::ExampleGroup]
|
4167
|
+
#
|
4168
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#325
|
3900
4169
|
def it_should_behave_like(name, *args, &customization_block); end
|
3901
4170
|
|
3902
4171
|
# source://rspec-core//lib/rspec/core/example_group.rb#78
|
@@ -3911,17 +4180,17 @@ class RSpec::Core::ExampleGroup
|
|
3911
4180
|
|
3912
4181
|
# @private
|
3913
4182
|
#
|
3914
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4183
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#492
|
3915
4184
|
def next_runnable_index_for(file); end
|
3916
4185
|
|
3917
4186
|
# @private
|
3918
4187
|
#
|
3919
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4188
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#632
|
3920
4189
|
def ordering_strategy; end
|
3921
4190
|
|
3922
4191
|
# @private
|
3923
4192
|
#
|
3924
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4193
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#515
|
3925
4194
|
def parent_groups; end
|
3926
4195
|
|
3927
4196
|
# Shortcut to define an example with `:pending => true`
|
@@ -3954,44 +4223,44 @@ class RSpec::Core::ExampleGroup
|
|
3954
4223
|
|
3955
4224
|
# Removes an example from the example group
|
3956
4225
|
#
|
3957
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4226
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#380
|
3958
4227
|
def remove_example(example); end
|
3959
4228
|
|
3960
4229
|
# Clear memoized values when adding/removing examples
|
3961
4230
|
#
|
3962
4231
|
# @private
|
3963
4232
|
#
|
3964
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4233
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#366
|
3965
4234
|
def reset_memoized; end
|
3966
4235
|
|
3967
4236
|
# Runs all the examples in this group.
|
3968
4237
|
#
|
3969
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4238
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#606
|
3970
4239
|
def run(reporter = T.unsafe(nil)); end
|
3971
4240
|
|
3972
4241
|
# @private
|
3973
4242
|
#
|
3974
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4243
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#592
|
3975
4244
|
def run_after_context_hooks(example_group_instance); end
|
3976
4245
|
|
3977
4246
|
# @private
|
3978
4247
|
#
|
3979
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4248
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#554
|
3980
4249
|
def run_before_context_hooks(example_group_instance); end
|
3981
4250
|
|
3982
4251
|
# @private
|
3983
4252
|
#
|
3984
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4253
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#648
|
3985
4254
|
def run_examples(reporter); end
|
3986
4255
|
|
3987
4256
|
# @private
|
3988
4257
|
#
|
3989
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4258
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#417
|
3990
4259
|
def set_it_up(description, args, registration_collection, &example_group_block); end
|
3991
4260
|
|
3992
4261
|
# @private
|
3993
4262
|
#
|
3994
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4263
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#692
|
3995
4264
|
def set_ivars(instance, ivars); end
|
3996
4265
|
|
3997
4266
|
# Shortcut to define an example with `:skip => true`
|
@@ -4058,19 +4327,19 @@ class RSpec::Core::ExampleGroup
|
|
4058
4327
|
|
4059
4328
|
# @private
|
4060
4329
|
#
|
4061
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4330
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#541
|
4062
4331
|
def store_before_context_ivars(example_group_instance); end
|
4063
4332
|
|
4064
4333
|
# @private
|
4065
4334
|
#
|
4066
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4335
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#402
|
4067
4336
|
def subclass(parent, description, args, registration_collection, &example_group_block); end
|
4068
4337
|
|
4069
4338
|
# :nocov:
|
4070
4339
|
#
|
4071
4340
|
# @private
|
4072
4341
|
#
|
4073
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4342
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#569
|
4074
4343
|
def superclass_before_context_ivars; end
|
4075
4344
|
|
4076
4345
|
# @private
|
@@ -4082,12 +4351,12 @@ class RSpec::Core::ExampleGroup
|
|
4082
4351
|
# @private
|
4083
4352
|
# @return [Boolean]
|
4084
4353
|
#
|
4085
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4354
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#520
|
4086
4355
|
def top_level?; end
|
4087
4356
|
|
4088
4357
|
# @private
|
4089
4358
|
#
|
4090
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4359
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#687
|
4091
4360
|
def top_level_description; end
|
4092
4361
|
|
4093
4362
|
# Traverses the tree of groups, starting with `self`, then the children, recursively.
|
@@ -4098,12 +4367,12 @@ class RSpec::Core::ExampleGroup
|
|
4098
4367
|
#
|
4099
4368
|
# @private
|
4100
4369
|
#
|
4101
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4370
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#483
|
4102
4371
|
def traverse_tree_until(&block); end
|
4103
4372
|
|
4104
4373
|
# @private
|
4105
4374
|
#
|
4106
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4375
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#734
|
4107
4376
|
def update_inherited_metadata(updates); end
|
4108
4377
|
|
4109
4378
|
# Temporarily replace the provided metadata.
|
@@ -4117,10 +4386,80 @@ class RSpec::Core::ExampleGroup
|
|
4117
4386
|
# source://rspec-core//lib/rspec/core/example_group.rb#61
|
4118
4387
|
def with_replaced_metadata(meta); end
|
4119
4388
|
|
4120
|
-
#
|
4389
|
+
# Shortcut to temporarily make an example group skipped.
|
4390
|
+
# Generates a subclass of this example group which inherits
|
4391
|
+
# everything except the examples themselves.
|
4392
|
+
#
|
4393
|
+
# @example
|
4394
|
+
#
|
4395
|
+
# RSpec.describe "something" do # << This describe method is defined in
|
4396
|
+
# # << RSpec::Core::DSL, included in the
|
4397
|
+
# # << global namespace (optional)
|
4398
|
+
# before do
|
4399
|
+
# do_something_before
|
4400
|
+
# end
|
4401
|
+
#
|
4402
|
+
# before(:example, :clean_env) do
|
4403
|
+
# env.clear!
|
4404
|
+
# end
|
4405
|
+
#
|
4406
|
+
# let(:thing) { Thing.new }
|
4407
|
+
#
|
4408
|
+
# xcontext "attribute (of something)" do
|
4409
|
+
# # examples in the group get the before hook
|
4410
|
+
# # declared above, and can access `thing`
|
4411
|
+
# end
|
4412
|
+
#
|
4413
|
+
# xcontext "needs additional setup", :clean_env, :implementation => JSON do
|
4414
|
+
# # specifies that hooks with matching metadata
|
4415
|
+
# # should be be run additionally
|
4416
|
+
# end
|
4417
|
+
# end
|
4418
|
+
# @overload xcontext
|
4419
|
+
# @overload xcontext
|
4420
|
+
# @overload xcontext
|
4421
|
+
# @return [RSpec::Core::ExampleGroup]
|
4422
|
+
# @see example_group
|
4423
|
+
#
|
4424
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#249
|
4121
4425
|
def xcontext(*args, &example_group_block); end
|
4122
4426
|
|
4123
|
-
#
|
4427
|
+
# Shortcut to temporarily make an example group skipped.
|
4428
|
+
# Generates a subclass of this example group which inherits
|
4429
|
+
# everything except the examples themselves.
|
4430
|
+
#
|
4431
|
+
# @example
|
4432
|
+
#
|
4433
|
+
# RSpec.describe "something" do # << This describe method is defined in
|
4434
|
+
# # << RSpec::Core::DSL, included in the
|
4435
|
+
# # << global namespace (optional)
|
4436
|
+
# before do
|
4437
|
+
# do_something_before
|
4438
|
+
# end
|
4439
|
+
#
|
4440
|
+
# before(:example, :clean_env) do
|
4441
|
+
# env.clear!
|
4442
|
+
# end
|
4443
|
+
#
|
4444
|
+
# let(:thing) { Thing.new }
|
4445
|
+
#
|
4446
|
+
# xdescribe "attribute (of something)" do
|
4447
|
+
# # examples in the group get the before hook
|
4448
|
+
# # declared above, and can access `thing`
|
4449
|
+
# end
|
4450
|
+
#
|
4451
|
+
# xdescribe "needs additional setup", :clean_env, :implementation => JSON do
|
4452
|
+
# # specifies that hooks with matching metadata
|
4453
|
+
# # should be be run additionally
|
4454
|
+
# end
|
4455
|
+
# end
|
4456
|
+
# @overload xdescribe
|
4457
|
+
# @overload xdescribe
|
4458
|
+
# @overload xdescribe
|
4459
|
+
# @return [RSpec::Core::ExampleGroup]
|
4460
|
+
# @see example_group
|
4461
|
+
#
|
4462
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#249
|
4124
4463
|
def xdescribe(*args, &example_group_block); end
|
4125
4464
|
|
4126
4465
|
# Shortcut to define an example with `:skip => 'Temporarily skipped with xexample'`.
|
@@ -4209,21 +4548,21 @@ class RSpec::Core::ExampleGroup
|
|
4209
4548
|
|
4210
4549
|
private
|
4211
4550
|
|
4212
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4551
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#749
|
4213
4552
|
def method_missing(name, *args); end
|
4214
4553
|
end
|
4215
4554
|
end
|
4216
4555
|
|
4217
4556
|
# @private
|
4218
4557
|
#
|
4219
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4558
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#703
|
4220
4559
|
RSpec::Core::ExampleGroup::INSTANCE_VARIABLE_TO_IGNORE = T.let(T.unsafe(nil), Symbol)
|
4221
4560
|
|
4222
4561
|
# Raised when an RSpec API is called in the wrong scope, such as `before`
|
4223
4562
|
# being called from within an example rather than from within an example
|
4224
4563
|
# group block.
|
4225
4564
|
#
|
4226
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
4565
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#747
|
4227
4566
|
class RSpec::Core::ExampleGroup::WrongScopeError < ::NoMethodError; end
|
4228
4567
|
|
4229
4568
|
# Dumps a list of hashes in a pretty, human readable format
|
@@ -4276,7 +4615,7 @@ end
|
|
4276
4615
|
# were loaded but not executed (due to filtering, `--fail-fast`
|
4277
4616
|
# or whatever) should have a `:status` of `UNKNOWN_STATUS`.
|
4278
4617
|
#
|
4279
|
-
# This
|
4618
|
+
# This will produce a new list that:
|
4280
4619
|
# - Will be missing examples from previous runs that we know for sure
|
4281
4620
|
# no longer exist.
|
4282
4621
|
# - Will have the latest known status for any examples that either
|
@@ -4616,7 +4955,7 @@ end
|
|
4616
4955
|
#
|
4617
4956
|
# This is ideal for use by a example or example group, which may
|
4618
4957
|
# be updated multiple times with globally configured hooks, etc,
|
4619
|
-
# but will not be queried frequently by other examples or
|
4958
|
+
# but will not be queried frequently by other examples or example
|
4620
4959
|
# groups.
|
4621
4960
|
#
|
4622
4961
|
# @private
|
@@ -4738,7 +5077,7 @@ module RSpec::Core::Formatters
|
|
4738
5077
|
# Register the formatter class
|
4739
5078
|
#
|
4740
5079
|
# @param formatter_class [Class] formatter class to register
|
4741
|
-
# @param notifications [Symbol
|
5080
|
+
# @param notifications [Array<Symbol>] one or more notifications to be
|
4742
5081
|
# registered to the specified formatter
|
4743
5082
|
# @see RSpec::Core::Formatters::BaseFormatter
|
4744
5083
|
#
|
@@ -4933,7 +5272,7 @@ module RSpec::Core::Formatters::ConsoleCodes
|
|
4933
5272
|
|
4934
5273
|
# @private
|
4935
5274
|
#
|
4936
|
-
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#
|
5275
|
+
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#34
|
4937
5276
|
def config_colors_to_methods; end
|
4938
5277
|
|
4939
5278
|
# Fetches the correct code for the supplied symbol, or checks
|
@@ -4942,7 +5281,7 @@ module RSpec::Core::Formatters::ConsoleCodes
|
|
4942
5281
|
# @param code_or_symbol [Symbol, Fixnum] Symbol or code to check
|
4943
5282
|
# @return [Fixnum] a console code
|
4944
5283
|
#
|
4945
|
-
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#
|
5284
|
+
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#47
|
4946
5285
|
def console_code_for(code_or_symbol); end
|
4947
5286
|
|
4948
5287
|
# Wraps a piece of text in ANSI codes with the supplied code. Will
|
@@ -4953,13 +5292,13 @@ module RSpec::Core::Formatters::ConsoleCodes
|
|
4953
5292
|
# @param code_or_symbol [Symbol, Fixnum] the desired control code
|
4954
5293
|
# @return [String] the wrapped text
|
4955
5294
|
#
|
4956
|
-
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#
|
5295
|
+
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#66
|
4957
5296
|
def wrap(text, code_or_symbol); end
|
4958
5297
|
|
4959
5298
|
class << self
|
4960
5299
|
# @private
|
4961
5300
|
#
|
4962
|
-
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#
|
5301
|
+
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#34
|
4963
5302
|
def config_colors_to_methods; end
|
4964
5303
|
|
4965
5304
|
# Fetches the correct code for the supplied symbol, or checks
|
@@ -4968,7 +5307,7 @@ module RSpec::Core::Formatters::ConsoleCodes
|
|
4968
5307
|
# @param code_or_symbol [Symbol, Fixnum] Symbol or code to check
|
4969
5308
|
# @return [Fixnum] a console code
|
4970
5309
|
#
|
4971
|
-
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#
|
5310
|
+
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#47
|
4972
5311
|
def console_code_for(code_or_symbol); end
|
4973
5312
|
|
4974
5313
|
# Wraps a piece of text in ANSI codes with the supplied code. Will
|
@@ -4979,7 +5318,7 @@ module RSpec::Core::Formatters::ConsoleCodes
|
|
4979
5318
|
# @param code_or_symbol [Symbol, Fixnum] the desired control code
|
4980
5319
|
# @return [String] the wrapped text
|
4981
5320
|
#
|
4982
|
-
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#
|
5321
|
+
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#66
|
4983
5322
|
def wrap(text, code_or_symbol); end
|
4984
5323
|
end
|
4985
5324
|
end
|
@@ -4991,7 +5330,7 @@ RSpec::Core::Formatters::ConsoleCodes::VT100_CODES = T.let(T.unsafe(nil), Hash)
|
|
4991
5330
|
|
4992
5331
|
# @private
|
4993
5332
|
#
|
4994
|
-
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#
|
5333
|
+
# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#29
|
4995
5334
|
RSpec::Core::Formatters::ConsoleCodes::VT100_CODE_VALUES = T.let(T.unsafe(nil), Hash)
|
4996
5335
|
|
4997
5336
|
# @private
|
@@ -5287,7 +5626,7 @@ class RSpec::Core::Formatters::ExceptionPresenter
|
|
5287
5626
|
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#16
|
5288
5627
|
def initialize(exception, example, options = T.unsafe(nil)); end
|
5289
5628
|
|
5290
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5629
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#78
|
5291
5630
|
def colorized_formatted_backtrace(colorizer = T.unsafe(nil)); end
|
5292
5631
|
|
5293
5632
|
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#33
|
@@ -5316,10 +5655,10 @@ class RSpec::Core::Formatters::ExceptionPresenter
|
|
5316
5655
|
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#45
|
5317
5656
|
def formatted_cause(exception); end
|
5318
5657
|
|
5319
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5658
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#84
|
5320
5659
|
def fully_formatted(failure_number, colorizer = T.unsafe(nil)); end
|
5321
5660
|
|
5322
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5661
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#89
|
5323
5662
|
def fully_formatted_lines(failure_number, colorizer); end
|
5324
5663
|
|
5325
5664
|
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#29
|
@@ -5327,7 +5666,7 @@ class RSpec::Core::Formatters::ExceptionPresenter
|
|
5327
5666
|
|
5328
5667
|
private
|
5329
5668
|
|
5330
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5669
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#226
|
5331
5670
|
def add_shared_group_lines(lines, colorizer); end
|
5332
5671
|
|
5333
5672
|
# Returns the value of attribute backtrace_formatter.
|
@@ -5340,29 +5679,31 @@ class RSpec::Core::Formatters::ExceptionPresenter
|
|
5340
5679
|
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12
|
5341
5680
|
def detail_formatter; end
|
5342
5681
|
|
5343
|
-
#
|
5682
|
+
# :nocov:
|
5344
5683
|
#
|
5345
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5684
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#287
|
5346
5685
|
def encoded_description(description); end
|
5347
5686
|
|
5348
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5687
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#120
|
5349
5688
|
def encoded_string(string); end
|
5350
5689
|
|
5351
5690
|
# :nocov:
|
5352
5691
|
#
|
5353
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5692
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#116
|
5354
5693
|
def encoding_of(string); end
|
5355
5694
|
|
5356
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5695
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#299
|
5357
5696
|
def exception_backtrace; end
|
5358
5697
|
|
5359
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5698
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#150
|
5360
5699
|
def exception_class_name(exception = T.unsafe(nil)); end
|
5361
5700
|
|
5362
|
-
#
|
5701
|
+
# :nocov:
|
5702
|
+
#
|
5703
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#204
|
5363
5704
|
def exception_lines; end
|
5364
5705
|
|
5365
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5706
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#185
|
5366
5707
|
def exception_message_string(exception); end
|
5367
5708
|
|
5368
5709
|
# Returns the value of attribute extra_detail_formatter.
|
@@ -5370,25 +5711,25 @@ class RSpec::Core::Formatters::ExceptionPresenter
|
|
5370
5711
|
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12
|
5371
5712
|
def extra_detail_formatter; end
|
5372
5713
|
|
5373
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5714
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#215
|
5374
5715
|
def extra_failure_lines; end
|
5375
5716
|
|
5376
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5717
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#156
|
5377
5718
|
def failure_lines; end
|
5378
5719
|
|
5379
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5720
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#170
|
5380
5721
|
def failure_slash_error_lines; end
|
5381
5722
|
|
5382
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5723
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#104
|
5383
5724
|
def final_exception(exception, previous = T.unsafe(nil)); end
|
5384
5725
|
|
5385
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5726
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#262
|
5386
5727
|
def find_failed_line; end
|
5387
5728
|
|
5388
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5729
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#278
|
5389
5730
|
def formatted_message_and_backtrace(colorizer); end
|
5390
5731
|
|
5391
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5732
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#134
|
5392
5733
|
def indent_lines(lines, failure_number); end
|
5393
5734
|
|
5394
5735
|
# Returns the value of attribute message_color.
|
@@ -5396,7 +5737,7 @@ class RSpec::Core::Formatters::ExceptionPresenter
|
|
5396
5737
|
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12
|
5397
5738
|
def message_color; end
|
5398
5739
|
|
5399
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5740
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#236
|
5400
5741
|
def read_failed_lines; end
|
5401
5742
|
end
|
5402
5743
|
|
@@ -5407,49 +5748,49 @@ end
|
|
5407
5748
|
#
|
5408
5749
|
# @private
|
5409
5750
|
#
|
5410
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5751
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#308
|
5411
5752
|
class RSpec::Core::Formatters::ExceptionPresenter::Factory
|
5412
5753
|
# @return [Factory] a new instance of Factory
|
5413
5754
|
#
|
5414
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5755
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#315
|
5415
5756
|
def initialize(example); end
|
5416
5757
|
|
5417
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5758
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#309
|
5418
5759
|
def build; end
|
5419
5760
|
|
5420
5761
|
private
|
5421
5762
|
|
5422
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5763
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#370
|
5423
5764
|
def multiple_exception_summarizer(exception, prior_detail_formatter, color); end
|
5424
5765
|
|
5425
5766
|
# @return [Boolean]
|
5426
5767
|
#
|
5427
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5768
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#366
|
5428
5769
|
def multiple_exceptions_error?(exception); end
|
5429
5770
|
|
5430
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5771
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#325
|
5431
5772
|
def options; end
|
5432
5773
|
|
5433
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5774
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#329
|
5434
5775
|
def pending_options; end
|
5435
5776
|
|
5436
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5777
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#391
|
5437
5778
|
def sub_failure_list_formatter(exception, message_color); end
|
5438
5779
|
|
5439
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5780
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#350
|
5440
5781
|
def with_multiple_error_options_as_needed(exception, options); end
|
5441
5782
|
end
|
5442
5783
|
|
5443
5784
|
# @private
|
5444
5785
|
#
|
5445
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5786
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#424
|
5446
5787
|
class RSpec::Core::Formatters::ExceptionPresenter::Factory::CommonBacktraceTruncater
|
5447
5788
|
# @return [CommonBacktraceTruncater] a new instance of CommonBacktraceTruncater
|
5448
5789
|
#
|
5449
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5790
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#425
|
5450
5791
|
def initialize(parent); end
|
5451
5792
|
|
5452
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5793
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#429
|
5453
5794
|
def with_truncated_backtrace(child); end
|
5454
5795
|
end
|
5455
5796
|
|
@@ -5458,17 +5799,17 @@ end
|
|
5458
5799
|
#
|
5459
5800
|
# @private
|
5460
5801
|
#
|
5461
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5802
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#417
|
5462
5803
|
module RSpec::Core::Formatters::ExceptionPresenter::Factory::EmptyBacktraceFormatter
|
5463
5804
|
class << self
|
5464
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5805
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#418
|
5465
5806
|
def format_backtrace(*_arg0); end
|
5466
5807
|
end
|
5467
5808
|
end
|
5468
5809
|
|
5469
5810
|
# @private
|
5470
5811
|
#
|
5471
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
5812
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#449
|
5472
5813
|
RSpec::Core::Formatters::ExceptionPresenter::PENDING_DETAIL_FORMATTER = T.let(T.unsafe(nil), Proc)
|
5473
5814
|
|
5474
5815
|
# @private
|
@@ -5558,7 +5899,7 @@ module RSpec::Core::Formatters::Helpers
|
|
5558
5899
|
#
|
5559
5900
|
# @api private
|
5560
5901
|
#
|
5561
|
-
# source://rspec-core//lib/rspec/core/formatters/helpers.rb#
|
5902
|
+
# source://rspec-core//lib/rspec/core/formatters/helpers.rb#102
|
5562
5903
|
def organize_ids(ids); end
|
5563
5904
|
|
5564
5905
|
# Pluralize a word based on a count.
|
@@ -5665,25 +6006,25 @@ class RSpec::Core::Formatters::HtmlPrinter
|
|
5665
6006
|
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#9
|
5666
6007
|
def initialize(output); end
|
5667
6008
|
|
5668
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6009
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#79
|
5669
6010
|
def flush; end
|
5670
6011
|
|
5671
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6012
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#96
|
5672
6013
|
def make_example_group_header_red(group_id); end
|
5673
6014
|
|
5674
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6015
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#103
|
5675
6016
|
def make_example_group_header_yellow(group_id); end
|
5676
6017
|
|
5677
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6018
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#88
|
5678
6019
|
def make_header_red; end
|
5679
6020
|
|
5680
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6021
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#92
|
5681
6022
|
def make_header_yellow; end
|
5682
6023
|
|
5683
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6024
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#83
|
5684
6025
|
def move_progress(percent_done); end
|
5685
6026
|
|
5686
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6027
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#36
|
5687
6028
|
def print_example_failed(pending_fixed, description, run_time, failure_id, exception, extra_content); end
|
5688
6029
|
|
5689
6030
|
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#18
|
@@ -5695,31 +6036,31 @@ class RSpec::Core::Formatters::HtmlPrinter
|
|
5695
6036
|
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#29
|
5696
6037
|
def print_example_passed(description, run_time); end
|
5697
6038
|
|
5698
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6039
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#53
|
5699
6040
|
def print_example_pending(description, pending_message); end
|
5700
6041
|
|
5701
6042
|
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#13
|
5702
6043
|
def print_html_start; end
|
5703
6044
|
|
5704
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6045
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#59
|
5705
6046
|
def print_summary(duration, example_count, failure_count, pending_count); end
|
5706
6047
|
|
5707
6048
|
private
|
5708
6049
|
|
5709
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6050
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#112
|
5710
6051
|
def indentation_style(number_of_parents); end
|
5711
6052
|
end
|
5712
6053
|
|
5713
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6054
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#140
|
5714
6055
|
RSpec::Core::Formatters::HtmlPrinter::GLOBAL_SCRIPTS = T.let(T.unsafe(nil), String)
|
5715
6056
|
|
5716
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6057
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#218
|
5717
6058
|
RSpec::Core::Formatters::HtmlPrinter::GLOBAL_STYLES = T.let(T.unsafe(nil), String)
|
5718
6059
|
|
5719
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6060
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#382
|
5720
6061
|
RSpec::Core::Formatters::HtmlPrinter::HTML_HEADER = T.let(T.unsafe(nil), String)
|
5721
6062
|
|
5722
|
-
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#
|
6063
|
+
# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#116
|
5723
6064
|
RSpec::Core::Formatters::HtmlPrinter::REPORT_HEADER = T.let(T.unsafe(nil), String)
|
5724
6065
|
|
5725
6066
|
# @private
|
@@ -5731,20 +6072,20 @@ class RSpec::Core::Formatters::JsonFormatter < ::RSpec::Core::Formatters::BaseFo
|
|
5731
6072
|
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#13
|
5732
6073
|
def initialize(output); end
|
5733
6074
|
|
5734
|
-
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#
|
6075
|
+
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#56
|
5735
6076
|
def close(_notification); end
|
5736
6077
|
|
5737
|
-
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#
|
6078
|
+
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#60
|
5738
6079
|
def dump_profile(profile); end
|
5739
6080
|
|
5740
6081
|
# @api private
|
5741
6082
|
#
|
5742
|
-
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#
|
6083
|
+
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#79
|
5743
6084
|
def dump_profile_slowest_example_groups(profile); end
|
5744
6085
|
|
5745
6086
|
# @api private
|
5746
6087
|
#
|
5747
|
-
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#
|
6088
|
+
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#67
|
5748
6089
|
def dump_profile_slowest_examples(profile); end
|
5749
6090
|
|
5750
6091
|
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#24
|
@@ -5758,15 +6099,15 @@ class RSpec::Core::Formatters::JsonFormatter < ::RSpec::Core::Formatters::BaseFo
|
|
5758
6099
|
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#11
|
5759
6100
|
def output_hash; end
|
5760
6101
|
|
5761
|
-
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#
|
6102
|
+
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#51
|
5762
6103
|
def seed(notification); end
|
5763
6104
|
|
5764
6105
|
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#35
|
5765
|
-
def stop(
|
6106
|
+
def stop(group_notification); end
|
5766
6107
|
|
5767
6108
|
private
|
5768
6109
|
|
5769
|
-
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#
|
6110
|
+
# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#88
|
5770
6111
|
def format_example(example); end
|
5771
6112
|
end
|
5772
6113
|
|
@@ -5831,12 +6172,12 @@ class RSpec::Core::Formatters::Loader
|
|
5831
6172
|
|
5832
6173
|
# @api private
|
5833
6174
|
#
|
5834
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6175
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#211
|
5835
6176
|
def built_in_formatter(key); end
|
5836
6177
|
|
5837
6178
|
# @api private
|
5838
6179
|
#
|
5839
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6180
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#234
|
5840
6181
|
def custom_formatter(formatter_ref); end
|
5841
6182
|
|
5842
6183
|
# @api private
|
@@ -5848,7 +6189,7 @@ class RSpec::Core::Formatters::Loader
|
|
5848
6189
|
# @api private
|
5849
6190
|
# @return [Boolean]
|
5850
6191
|
#
|
5851
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6192
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#207
|
5852
6193
|
def existing_formatter_implements?(notification); end
|
5853
6194
|
|
5854
6195
|
# @api private
|
@@ -5856,19 +6197,25 @@ class RSpec::Core::Formatters::Loader
|
|
5856
6197
|
# source://rspec-core//lib/rspec/core/formatters.rb#181
|
5857
6198
|
def find_formatter(formatter_to_use); end
|
5858
6199
|
|
6200
|
+
# @api private
|
6201
|
+
# @return [Boolean]
|
6202
|
+
#
|
6203
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#202
|
6204
|
+
def has_matching_output?(formatter, new_formatter); end
|
6205
|
+
|
5859
6206
|
# @api private
|
5860
6207
|
#
|
5861
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6208
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#228
|
5862
6209
|
def notifications_for(formatter_class); end
|
5863
6210
|
|
5864
6211
|
# @api private
|
5865
6212
|
#
|
5866
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6213
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#269
|
5867
6214
|
def open_stream(path_or_wrapper); end
|
5868
6215
|
|
5869
6216
|
# @api private
|
5870
6217
|
#
|
5871
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6218
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#250
|
5872
6219
|
def path_for(const_ref); end
|
5873
6220
|
|
5874
6221
|
# @api private
|
@@ -5879,19 +6226,19 @@ class RSpec::Core::Formatters::Loader
|
|
5879
6226
|
# @api private
|
5880
6227
|
# @return [Boolean]
|
5881
6228
|
#
|
5882
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6229
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#246
|
5883
6230
|
def string_const?(str); end
|
5884
6231
|
|
5885
6232
|
# activesupport/lib/active_support/inflector/methods.rb, line 48
|
5886
6233
|
#
|
5887
6234
|
# @api private
|
5888
6235
|
#
|
5889
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6236
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#259
|
5890
6237
|
def underscore(camel_cased_word); end
|
5891
6238
|
|
5892
6239
|
# @api private
|
5893
6240
|
#
|
5894
|
-
# source://rspec-core//lib/rspec/core/formatters.rb#
|
6241
|
+
# source://rspec-core//lib/rspec/core/formatters.rb#254
|
5895
6242
|
def underscore_with_fix_for_non_standard_rspec_naming(string); end
|
5896
6243
|
|
5897
6244
|
class << self
|
@@ -7404,7 +7751,7 @@ end
|
|
7404
7751
|
module RSpec::Core::MemoizedHelpers
|
7405
7752
|
# @private
|
7406
7753
|
#
|
7407
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7754
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#135
|
7408
7755
|
def initialize(*_arg0); end
|
7409
7756
|
|
7410
7757
|
# Wraps the `subject` in `expect` to make it the target of an expectation.
|
@@ -7421,7 +7768,7 @@ module RSpec::Core::MemoizedHelpers
|
|
7421
7768
|
# @see #should
|
7422
7769
|
# @see #should_not
|
7423
7770
|
#
|
7424
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7771
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#120
|
7425
7772
|
def is_expected; end
|
7426
7773
|
|
7427
7774
|
# When `should` is called with no explicit receiver, the call is
|
@@ -7456,7 +7803,7 @@ module RSpec::Core::MemoizedHelpers
|
|
7456
7803
|
# @see #subject
|
7457
7804
|
# @see #is_expected
|
7458
7805
|
#
|
7459
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7806
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#100
|
7460
7807
|
def should_not(matcher = T.unsafe(nil), message = T.unsafe(nil)); end
|
7461
7808
|
|
7462
7809
|
# @example
|
@@ -7511,7 +7858,7 @@ module RSpec::Core::MemoizedHelpers
|
|
7511
7858
|
|
7512
7859
|
# @private
|
7513
7860
|
#
|
7514
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7861
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#141
|
7515
7862
|
def __init_memoized; end
|
7516
7863
|
|
7517
7864
|
# should just be placed in private section,
|
@@ -7521,13 +7868,23 @@ module RSpec::Core::MemoizedHelpers
|
|
7521
7868
|
#
|
7522
7869
|
# @private
|
7523
7870
|
#
|
7524
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7871
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#129
|
7525
7872
|
def __memoized; end
|
7526
7873
|
|
7874
|
+
# @private
|
7875
|
+
#
|
7876
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#150
|
7877
|
+
def enforce_value_expectation(matcher, method_name); end
|
7878
|
+
|
7879
|
+
# @return [Boolean]
|
7880
|
+
#
|
7881
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#163
|
7882
|
+
def matcher_supports_value_expectations?(matcher); end
|
7883
|
+
|
7527
7884
|
class << self
|
7528
7885
|
# @private
|
7529
7886
|
#
|
7530
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7887
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#542
|
7531
7888
|
def define_helpers_on(example_group); end
|
7532
7889
|
|
7533
7890
|
# Gets the named constant or yields.
|
@@ -7539,7 +7896,7 @@ module RSpec::Core::MemoizedHelpers
|
|
7539
7896
|
#
|
7540
7897
|
# @private
|
7541
7898
|
#
|
7542
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7899
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#570
|
7543
7900
|
def get_constant_or_yield(example_group, name); end
|
7544
7901
|
|
7545
7902
|
# Gets the LetDefinitions module. The module is mixed into
|
@@ -7555,7 +7912,7 @@ module RSpec::Core::MemoizedHelpers
|
|
7555
7912
|
#
|
7556
7913
|
# @private
|
7557
7914
|
#
|
7558
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7915
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#528
|
7559
7916
|
def module_for(example_group); end
|
7560
7917
|
end
|
7561
7918
|
end
|
@@ -7564,7 +7921,7 @@ end
|
|
7564
7921
|
# available to be called from within example group blocks.
|
7565
7922
|
# You can think of them as being analagous to class macros.
|
7566
7923
|
#
|
7567
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7924
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#274
|
7568
7925
|
module RSpec::Core::MemoizedHelpers::ClassMethods
|
7569
7926
|
# Generates a method whose return value is memoized after the first
|
7570
7927
|
# call. Useful for reducing duplication between examples that assign
|
@@ -7595,7 +7952,7 @@ module RSpec::Core::MemoizedHelpers::ClassMethods
|
|
7595
7952
|
# is shared across _all_ examples in an example group, `let` is _not_
|
7596
7953
|
# intended to be used in a `before(:context)` hook.
|
7597
7954
|
#
|
7598
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
7955
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#306
|
7599
7956
|
def let(name, &block); end
|
7600
7957
|
|
7601
7958
|
# Just like `let`, except the block is invoked by an implicit `before`
|
@@ -7652,7 +8009,7 @@ module RSpec::Core::MemoizedHelpers::ClassMethods
|
|
7652
8009
|
# end
|
7653
8010
|
# end
|
7654
8011
|
#
|
7655
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8012
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#400
|
7656
8013
|
def let!(name, &block); end
|
7657
8014
|
|
7658
8015
|
# Declares a `subject` for an example group which can then be wrapped
|
@@ -7692,7 +8049,7 @@ module RSpec::Core::MemoizedHelpers::ClassMethods
|
|
7692
8049
|
# @see MemoizedHelpers#should_not
|
7693
8050
|
# @see MemoizedHelpers#is_expected
|
7694
8051
|
#
|
7695
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8052
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#444
|
7696
8053
|
def subject(name = T.unsafe(nil), &block); end
|
7697
8054
|
|
7698
8055
|
# Just like `subject`, except the block is invoked by an implicit
|
@@ -7749,7 +8106,7 @@ module RSpec::Core::MemoizedHelpers::ClassMethods
|
|
7749
8106
|
# end
|
7750
8107
|
# end
|
7751
8108
|
#
|
7752
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8109
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#510
|
7753
8110
|
def subject!(name = T.unsafe(nil), &block); end
|
7754
8111
|
end
|
7755
8112
|
|
@@ -7758,72 +8115,72 @@ end
|
|
7758
8115
|
#
|
7759
8116
|
# @private
|
7760
8117
|
#
|
7761
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8118
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#200
|
7762
8119
|
class RSpec::Core::MemoizedHelpers::ContextHookMemoized
|
7763
8120
|
class << self
|
7764
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8121
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#222
|
7765
8122
|
def fetch_or_store(key, &_block); end
|
7766
8123
|
|
7767
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8124
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#201
|
7768
8125
|
def isolate_for_context_hook(example_group_instance); end
|
7769
8126
|
end
|
7770
8127
|
end
|
7771
8128
|
|
7772
8129
|
# @private
|
7773
8130
|
#
|
7774
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8131
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#256
|
7775
8132
|
class RSpec::Core::MemoizedHelpers::ContextHookMemoized::After < ::RSpec::Core::MemoizedHelpers::ContextHookMemoized
|
7776
8133
|
class << self
|
7777
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8134
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#261
|
7778
8135
|
def article; end
|
7779
8136
|
|
7780
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8137
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#257
|
7781
8138
|
def hook_expression; end
|
7782
8139
|
|
7783
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8140
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#265
|
7784
8141
|
def hook_intention; end
|
7785
8142
|
end
|
7786
8143
|
end
|
7787
8144
|
|
7788
8145
|
# @private
|
7789
8146
|
#
|
7790
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8147
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#241
|
7791
8148
|
class RSpec::Core::MemoizedHelpers::ContextHookMemoized::Before < ::RSpec::Core::MemoizedHelpers::ContextHookMemoized
|
7792
8149
|
class << self
|
7793
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8150
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#246
|
7794
8151
|
def article; end
|
7795
8152
|
|
7796
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8153
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#242
|
7797
8154
|
def hook_expression; end
|
7798
8155
|
|
7799
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8156
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#250
|
7800
8157
|
def hook_intention; end
|
7801
8158
|
end
|
7802
8159
|
end
|
7803
8160
|
|
7804
8161
|
# @private
|
7805
8162
|
#
|
7806
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8163
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#186
|
7807
8164
|
class RSpec::Core::MemoizedHelpers::NonThreadSafeMemoized
|
7808
8165
|
# @return [NonThreadSafeMemoized] a new instance of NonThreadSafeMemoized
|
7809
8166
|
#
|
7810
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8167
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#187
|
7811
8168
|
def initialize; end
|
7812
8169
|
|
7813
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8170
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#191
|
7814
8171
|
def fetch_or_store(key); end
|
7815
8172
|
end
|
7816
8173
|
|
7817
8174
|
# @private
|
7818
8175
|
#
|
7819
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8176
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#170
|
7820
8177
|
class RSpec::Core::MemoizedHelpers::ThreadsafeMemoized
|
7821
8178
|
# @return [ThreadsafeMemoized] a new instance of ThreadsafeMemoized
|
7822
8179
|
#
|
7823
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8180
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#171
|
7824
8181
|
def initialize; end
|
7825
8182
|
|
7826
|
-
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#
|
8183
|
+
# source://rspec-core//lib/rspec/core/memoized_helpers.rb#176
|
7827
8184
|
def fetch_or_store(key); end
|
7828
8185
|
end
|
7829
8186
|
|
@@ -8081,57 +8438,57 @@ end
|
|
8081
8438
|
# individual spec has multiple exceptions, such as one in the `it` block
|
8082
8439
|
# and one in an `after` block.
|
8083
8440
|
#
|
8084
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8441
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#459
|
8085
8442
|
class RSpec::Core::MultipleExceptionError < ::StandardError
|
8086
8443
|
include ::RSpec::Core::MultipleExceptionError::InterfaceTag
|
8087
8444
|
|
8088
8445
|
# @param exceptions [Array<Exception>] The initial list of exceptions.
|
8089
8446
|
# @return [MultipleExceptionError] a new instance of MultipleExceptionError
|
8090
8447
|
#
|
8091
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8448
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#520
|
8092
8449
|
def initialize(*exceptions); end
|
8093
8450
|
|
8094
8451
|
# @return [nil] Provided only for interface compatibility with
|
8095
8452
|
# `RSpec::Expectations::MultipleExpectationsNotMetError`.
|
8096
8453
|
#
|
8097
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8454
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#517
|
8098
8455
|
def aggregation_block_label; end
|
8099
8456
|
|
8100
8457
|
# @return [Hash] Metadata used by RSpec for formatting purposes.
|
8101
8458
|
#
|
8102
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8459
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#513
|
8103
8460
|
def aggregation_metadata; end
|
8104
8461
|
|
8105
8462
|
# @return [Array<Exception>] The list of failures and other exceptions, combined.
|
8106
8463
|
#
|
8107
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8464
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#510
|
8108
8465
|
def all_exceptions; end
|
8109
8466
|
|
8110
8467
|
# return [String] A description of the failure/error counts.
|
8111
8468
|
#
|
8112
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8469
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#545
|
8113
8470
|
def exception_count_description; end
|
8114
8471
|
|
8115
8472
|
# @return [Array<Exception>] The list of failures.
|
8116
8473
|
#
|
8117
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8474
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#504
|
8118
8475
|
def failures; end
|
8119
8476
|
|
8120
8477
|
# @note RSpec does not actually use this -- instead it formats each exception
|
8121
8478
|
# individually.
|
8122
8479
|
# @return [String] Combines all the exception messages into a single string.
|
8123
8480
|
#
|
8124
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8481
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#535
|
8125
8482
|
def message; end
|
8126
8483
|
|
8127
8484
|
# @return [Array<Exception>] The list of other errors.
|
8128
8485
|
#
|
8129
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8486
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#507
|
8130
8487
|
def other_errors; end
|
8131
8488
|
|
8132
8489
|
# @return [String] A summary of the failure, including the block label and a count of failures.
|
8133
8490
|
#
|
8134
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8491
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#540
|
8135
8492
|
def summary; end
|
8136
8493
|
end
|
8137
8494
|
|
@@ -8142,14 +8499,14 @@ end
|
|
8142
8499
|
#
|
8143
8500
|
# @private
|
8144
8501
|
#
|
8145
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8502
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#465
|
8146
8503
|
module RSpec::Core::MultipleExceptionError::InterfaceTag
|
8147
8504
|
# Appends the provided exception to the list.
|
8148
8505
|
#
|
8149
8506
|
# @param exception [Exception] Exception to append to the list.
|
8150
8507
|
# @private
|
8151
8508
|
#
|
8152
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8509
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#469
|
8153
8510
|
def add(exception); end
|
8154
8511
|
|
8155
8512
|
class << self
|
@@ -8159,7 +8516,7 @@ module RSpec::Core::MultipleExceptionError::InterfaceTag
|
|
8159
8516
|
#
|
8160
8517
|
# @private
|
8161
8518
|
#
|
8162
|
-
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#
|
8519
|
+
# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#495
|
8163
8520
|
def for(ex); end
|
8164
8521
|
end
|
8165
8522
|
end
|
@@ -8174,7 +8531,7 @@ module RSpec::Core::Notifications; end
|
|
8174
8531
|
# other registered listeners, it creates attributes based on supplied hash
|
8175
8532
|
# of options.
|
8176
8533
|
#
|
8177
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8534
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#512
|
8178
8535
|
class RSpec::Core::Notifications::CustomNotification < ::Struct
|
8179
8536
|
class << self
|
8180
8537
|
# Build a custom notification based on the supplied option key / values.
|
@@ -8182,7 +8539,7 @@ class RSpec::Core::Notifications::CustomNotification < ::Struct
|
|
8182
8539
|
# @param options [Hash] A hash of method / value pairs to create on this notification
|
8183
8540
|
# @return [CustomNotification]
|
8184
8541
|
#
|
8185
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8542
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#517
|
8186
8543
|
def for(options = T.unsafe(nil)); end
|
8187
8544
|
end
|
8188
8545
|
end
|
@@ -8198,7 +8555,7 @@ end
|
|
8198
8555
|
# @attr call_site [String] An optional call site from which the deprecation
|
8199
8556
|
# was issued
|
8200
8557
|
#
|
8201
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8558
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#493
|
8202
8559
|
class RSpec::Core::Notifications::DeprecationNotification < ::Struct
|
8203
8560
|
# An optional call site from which the deprecation
|
8204
8561
|
# was issued
|
@@ -8255,7 +8612,7 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct
|
|
8255
8612
|
#
|
8256
8613
|
# @api
|
8257
8614
|
#
|
8258
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8615
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#499
|
8259
8616
|
def from_hash(data); end
|
8260
8617
|
|
8261
8618
|
def inspect; end
|
@@ -8371,7 +8728,7 @@ class RSpec::Core::Notifications::ExamplesNotification
|
|
8371
8728
|
|
8372
8729
|
private
|
8373
8730
|
|
8374
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8731
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#136
|
8375
8732
|
def format_examples(examples); end
|
8376
8733
|
end
|
8377
8734
|
|
@@ -8388,11 +8745,11 @@ end
|
|
8388
8745
|
# end
|
8389
8746
|
# @see ExampleNotification
|
8390
8747
|
#
|
8391
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8748
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#156
|
8392
8749
|
class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Notifications::ExampleNotification
|
8393
8750
|
# @return [FailedExampleNotification] a new instance of FailedExampleNotification
|
8394
8751
|
#
|
8395
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8752
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#213
|
8396
8753
|
def initialize(example, exception_presenter = T.unsafe(nil)); end
|
8397
8754
|
|
8398
8755
|
# Returns the failures colorized formatted backtrace.
|
@@ -8400,7 +8757,7 @@ class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Not
|
|
8400
8757
|
# @param colorizer [#wrap] An object to colorize the message_lines by
|
8401
8758
|
# @return [Array<String>] the examples colorized backtrace lines
|
8402
8759
|
#
|
8403
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8760
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#195
|
8404
8761
|
def colorized_formatted_backtrace(colorizer = T.unsafe(nil)); end
|
8405
8762
|
|
8406
8763
|
# Returns the message generated for this failure colorized line by line.
|
@@ -8408,43 +8765,43 @@ class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Not
|
|
8408
8765
|
# @param colorizer [#wrap] An object to colorize the message_lines by
|
8409
8766
|
# @return [Array<String>] The example failure message colorized
|
8410
8767
|
#
|
8411
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8768
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#180
|
8412
8769
|
def colorized_message_lines(colorizer = T.unsafe(nil)); end
|
8413
8770
|
|
8414
8771
|
# @return [String] The example description
|
8415
8772
|
#
|
8416
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8773
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#165
|
8417
8774
|
def description; end
|
8418
8775
|
|
8419
8776
|
# @return [Exception] The example failure
|
8420
8777
|
#
|
8421
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8778
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#160
|
8422
8779
|
def exception; end
|
8423
8780
|
|
8424
8781
|
# Returns the failures formatted backtrace.
|
8425
8782
|
#
|
8426
8783
|
# @return [Array<String>] the examples backtrace lines
|
8427
8784
|
#
|
8428
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8785
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#187
|
8429
8786
|
def formatted_backtrace; end
|
8430
8787
|
|
8431
8788
|
# @return [String] The failure information fully formatted in the way that
|
8432
8789
|
# RSpec's built-in formatters emit.
|
8433
8790
|
#
|
8434
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8791
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#201
|
8435
8792
|
def fully_formatted(failure_number, colorizer = T.unsafe(nil)); end
|
8436
8793
|
|
8437
8794
|
# @return [Array<string>] The failure information fully formatted in the way that
|
8438
8795
|
# RSpec's built-in formatters emit, split by line.
|
8439
8796
|
#
|
8440
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8797
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#207
|
8441
8798
|
def fully_formatted_lines(failure_number, colorizer = T.unsafe(nil)); end
|
8442
8799
|
|
8443
8800
|
# Returns the message generated for this failure line by line.
|
8444
8801
|
#
|
8445
8802
|
# @return [Array<String>] The example failure message
|
8446
8803
|
#
|
8447
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8804
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#172
|
8448
8805
|
def message_lines; end
|
8449
8806
|
|
8450
8807
|
class << self
|
@@ -8463,7 +8820,7 @@ end
|
|
8463
8820
|
# puts "Hey I started #{notification.group.description}"
|
8464
8821
|
# end
|
8465
8822
|
#
|
8466
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8823
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#258
|
8467
8824
|
class RSpec::Core::Notifications::GroupNotification < ::Struct
|
8468
8825
|
# the current group
|
8469
8826
|
#
|
@@ -8490,7 +8847,7 @@ end
|
|
8490
8847
|
#
|
8491
8848
|
# @attr message [String] the message
|
8492
8849
|
#
|
8493
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8850
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#264
|
8494
8851
|
class RSpec::Core::Notifications::MessageNotification < ::Struct
|
8495
8852
|
# the message
|
8496
8853
|
#
|
@@ -8530,17 +8887,17 @@ end
|
|
8530
8887
|
# `NullNotification` represents a placeholder value for notifications that
|
8531
8888
|
# currently require no information, but we may wish to extend in future.
|
8532
8889
|
#
|
8533
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8890
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#506
|
8534
8891
|
class RSpec::Core::Notifications::NullNotification; end
|
8535
8892
|
|
8536
8893
|
# @deprecated Use {FailedExampleNotification} instead.
|
8537
8894
|
#
|
8538
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8895
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#223
|
8539
8896
|
class RSpec::Core::Notifications::PendingExampleFailedAsExpectedNotification < ::RSpec::Core::Notifications::FailedExampleNotification; end
|
8540
8897
|
|
8541
8898
|
# @deprecated Use {FailedExampleNotification} instead.
|
8542
8899
|
#
|
8543
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8900
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#220
|
8544
8901
|
class RSpec::Core::Notifications::PendingExampleFixedNotification < ::RSpec::Core::Notifications::FailedExampleNotification; end
|
8545
8902
|
|
8546
8903
|
# The `ProfileNotification` holds information about the results of running a
|
@@ -8552,57 +8909,57 @@ class RSpec::Core::Notifications::PendingExampleFixedNotification < ::RSpec::Cor
|
|
8552
8909
|
# @attr number_of_examples [Fixnum] the number of examples to profile
|
8553
8910
|
# @attr example_groups [Array<RSpec::Core::Profiler>] example groups run
|
8554
8911
|
#
|
8555
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8912
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#429
|
8556
8913
|
class RSpec::Core::Notifications::ProfileNotification
|
8557
8914
|
# @return [ProfileNotification] a new instance of ProfileNotification
|
8558
8915
|
#
|
8559
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8916
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#430
|
8560
8917
|
def initialize(duration, examples, number_of_examples, example_groups); end
|
8561
8918
|
|
8562
8919
|
# the time taken (in seconds) to run the suite
|
8563
8920
|
#
|
8564
8921
|
# @return [Float] the current value of duration
|
8565
8922
|
#
|
8566
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8923
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#436
|
8567
8924
|
def duration; end
|
8568
8925
|
|
8569
8926
|
# the examples run
|
8570
8927
|
#
|
8571
8928
|
# @return [Array<RSpec::Core::Example>] the current value of examples
|
8572
8929
|
#
|
8573
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8930
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#436
|
8574
8931
|
def examples; end
|
8575
8932
|
|
8576
8933
|
# the number of examples to profile
|
8577
8934
|
#
|
8578
8935
|
# @return [Fixnum] the current value of number_of_examples
|
8579
8936
|
#
|
8580
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8937
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#436
|
8581
8938
|
def number_of_examples; end
|
8582
8939
|
|
8583
8940
|
# @return [String] the percentage of total time taken
|
8584
8941
|
#
|
8585
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8942
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#455
|
8586
8943
|
def percentage; end
|
8587
8944
|
|
8588
8945
|
# @return [Float] the time taken (in seconds) to run the slowest examples
|
8589
8946
|
#
|
8590
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8947
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#447
|
8591
8948
|
def slow_duration; end
|
8592
8949
|
|
8593
8950
|
# @return [Array<RSpec::Core::Example>] the slowest examples
|
8594
8951
|
#
|
8595
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8952
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#439
|
8596
8953
|
def slowest_examples; end
|
8597
8954
|
|
8598
8955
|
# @return [Array<RSpec::Core::Example>] the slowest example groups
|
8599
8956
|
#
|
8600
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8957
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#464
|
8601
8958
|
def slowest_groups; end
|
8602
8959
|
|
8603
8960
|
private
|
8604
8961
|
|
8605
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8962
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#470
|
8606
8963
|
def calculate_slowest_groups; end
|
8607
8964
|
end
|
8608
8965
|
|
@@ -8612,12 +8969,12 @@ end
|
|
8612
8969
|
# @attr seed [Fixnum] the seed used to randomize ordering
|
8613
8970
|
# @attr used [Boolean] whether the seed has been used or not
|
8614
8971
|
#
|
8615
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8972
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#271
|
8616
8973
|
class RSpec::Core::Notifications::SeedNotification < ::Struct
|
8617
8974
|
# @return [String] The seed information fully formatted in the way that
|
8618
8975
|
# RSpec's built-in formatters emit.
|
8619
8976
|
#
|
8620
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8977
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#282
|
8621
8978
|
def fully_formatted; end
|
8622
8979
|
|
8623
8980
|
# the seed used to randomize ordering
|
@@ -8634,7 +8991,7 @@ class RSpec::Core::Notifications::SeedNotification < ::Struct
|
|
8634
8991
|
# @api
|
8635
8992
|
# @return [Boolean] has the seed been used?
|
8636
8993
|
#
|
8637
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
8994
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#275
|
8638
8995
|
def seed_used?; end
|
8639
8996
|
|
8640
8997
|
# whether the seed has been used or not
|
@@ -8665,12 +9022,12 @@ end
|
|
8665
9022
|
# @attr example [RSpec::Core::Example] the current example
|
8666
9023
|
# @see ExampleNotification
|
8667
9024
|
#
|
8668
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9025
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#230
|
8669
9026
|
class RSpec::Core::Notifications::SkippedExampleNotification < ::RSpec::Core::Notifications::ExampleNotification
|
8670
9027
|
# @return [String] The pending detail fully formatted in the way that
|
8671
9028
|
# RSpec's built-in formatters emit.
|
8672
9029
|
#
|
8673
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9030
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#235
|
8674
9031
|
def fully_formatted(pending_number, colorizer = T.unsafe(nil)); end
|
8675
9032
|
|
8676
9033
|
class << self
|
@@ -8735,7 +9092,7 @@ end
|
|
8735
9092
|
# have occurred processing
|
8736
9093
|
# the spec suite
|
8737
9094
|
#
|
8738
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9095
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#300
|
8739
9096
|
class RSpec::Core::Notifications::SummaryNotification < ::Struct
|
8740
9097
|
include ::RSpec::Core::ShellEscape
|
8741
9098
|
|
@@ -8746,7 +9103,7 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct
|
|
8746
9103
|
# specific colors.
|
8747
9104
|
# @return [String] A colorized summary line.
|
8748
9105
|
#
|
8749
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9106
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#364
|
8750
9107
|
def colorized_rerun_commands(colorizer = T.unsafe(nil)); end
|
8751
9108
|
|
8752
9109
|
# Wraps the results line with colors based on the configured
|
@@ -8758,7 +9115,7 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct
|
|
8758
9115
|
# specific colors.
|
8759
9116
|
# @return [String] A colorized results line.
|
8760
9117
|
#
|
8761
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9118
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#347
|
8762
9119
|
def colorized_totals_line(colorizer = T.unsafe(nil)); end
|
8763
9120
|
|
8764
9121
|
# the time taken (in seconds) to run the suite
|
@@ -8790,7 +9147,7 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct
|
|
8790
9147
|
# @api
|
8791
9148
|
# @return [Fixnum] the number of examples run
|
8792
9149
|
#
|
8793
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9150
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#306
|
8794
9151
|
def example_count; end
|
8795
9152
|
|
8796
9153
|
# the examples run
|
@@ -8818,25 +9175,25 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct
|
|
8818
9175
|
# @api
|
8819
9176
|
# @return [Fixnum] the number of failed examples
|
8820
9177
|
#
|
8821
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9178
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#312
|
8822
9179
|
def failure_count; end
|
8823
9180
|
|
8824
9181
|
# @return [String] a formatted version of the time it took to run the
|
8825
9182
|
# suite
|
8826
9183
|
#
|
8827
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9184
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#374
|
8828
9185
|
def formatted_duration; end
|
8829
9186
|
|
8830
9187
|
# @return [String] a formatted version of the time it took to boot RSpec
|
8831
9188
|
# and load the spec files
|
8832
9189
|
#
|
8833
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9190
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#380
|
8834
9191
|
def formatted_load_time; end
|
8835
9192
|
|
8836
9193
|
# @return [String] The summary information fully formatted in the way that
|
8837
9194
|
# RSpec's built-in formatters emit.
|
8838
9195
|
#
|
8839
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9196
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#386
|
8840
9197
|
def fully_formatted(colorizer = T.unsafe(nil)); end
|
8841
9198
|
|
8842
9199
|
# the number of seconds taken to boot RSpec
|
@@ -8855,7 +9212,7 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct
|
|
8855
9212
|
# @api
|
8856
9213
|
# @return [Fixnum] the number of pending examples
|
8857
9214
|
#
|
8858
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9215
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#318
|
8859
9216
|
def pending_count; end
|
8860
9217
|
|
8861
9218
|
# the pending examples
|
@@ -8872,15 +9229,15 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct
|
|
8872
9229
|
# @api
|
8873
9230
|
# @return [String] A line summarising the result totals of the spec run.
|
8874
9231
|
#
|
8875
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9232
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#324
|
8876
9233
|
def totals_line; end
|
8877
9234
|
|
8878
9235
|
private
|
8879
9236
|
|
8880
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9237
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#408
|
8881
9238
|
def duplicate_rerun_locations; end
|
8882
9239
|
|
8883
|
-
# source://rspec-core//lib/rspec/core/notifications.rb#
|
9240
|
+
# source://rspec-core//lib/rspec/core/notifications.rb#402
|
8884
9241
|
def rerun_argument_for(example); end
|
8885
9242
|
|
8886
9243
|
class << self
|
@@ -8896,12 +9253,12 @@ end
|
|
8896
9253
|
#
|
8897
9254
|
# @private
|
8898
9255
|
#
|
8899
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
9256
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#260
|
8900
9257
|
class RSpec::Core::NullReporter
|
8901
9258
|
class << self
|
8902
9259
|
private
|
8903
9260
|
|
8904
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
9261
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#261
|
8905
9262
|
def method_missing(*_arg0); end
|
8906
9263
|
end
|
8907
9264
|
end
|
@@ -8917,38 +9274,38 @@ module RSpec::Core::Ordering; end
|
|
8917
9274
|
# the APIs provided by `RSpec::Core::Configuration` instead.
|
8918
9275
|
# @private
|
8919
9276
|
#
|
8920
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9277
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#144
|
8921
9278
|
class RSpec::Core::Ordering::ConfigurationManager
|
8922
9279
|
# @return [ConfigurationManager] a new instance of ConfigurationManager
|
8923
9280
|
#
|
8924
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9281
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#147
|
8925
9282
|
def initialize; end
|
8926
9283
|
|
8927
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9284
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#190
|
8928
9285
|
def force(hash); end
|
8929
9286
|
|
8930
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9287
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#164
|
8931
9288
|
def order=(type); end
|
8932
9289
|
|
8933
9290
|
# Returns the value of attribute ordering_registry.
|
8934
9291
|
#
|
8935
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9292
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#145
|
8936
9293
|
def ordering_registry; end
|
8937
9294
|
|
8938
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9295
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#201
|
8939
9296
|
def register_ordering(name, strategy = T.unsafe(nil)); end
|
8940
9297
|
|
8941
9298
|
# Returns the value of attribute seed.
|
8942
9299
|
#
|
8943
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9300
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#145
|
8944
9301
|
def seed; end
|
8945
9302
|
|
8946
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9303
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#158
|
8947
9304
|
def seed=(seed); end
|
8948
9305
|
|
8949
9306
|
# @return [Boolean]
|
8950
9307
|
#
|
8951
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9308
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#154
|
8952
9309
|
def seed_used?; end
|
8953
9310
|
end
|
8954
9311
|
|
@@ -8956,15 +9313,38 @@ end
|
|
8956
9313
|
#
|
8957
9314
|
# @private
|
8958
9315
|
#
|
8959
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9316
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#71
|
8960
9317
|
class RSpec::Core::Ordering::Custom
|
8961
9318
|
# @return [Custom] a new instance of Custom
|
8962
9319
|
#
|
8963
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9320
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#72
|
8964
9321
|
def initialize(callable); end
|
8965
9322
|
|
8966
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9323
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#76
|
9324
|
+
def order(list); end
|
9325
|
+
end
|
9326
|
+
|
9327
|
+
# A strategy which delays looking up the ordering until needed
|
9328
|
+
#
|
9329
|
+
# @private
|
9330
|
+
#
|
9331
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#83
|
9332
|
+
class RSpec::Core::Ordering::Delayed
|
9333
|
+
# @return [Delayed] a new instance of Delayed
|
9334
|
+
#
|
9335
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#84
|
9336
|
+
def initialize(registry, name); end
|
9337
|
+
|
9338
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#89
|
8967
9339
|
def order(list); end
|
9340
|
+
|
9341
|
+
private
|
9342
|
+
|
9343
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#99
|
9344
|
+
def lookup_strategy; end
|
9345
|
+
|
9346
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#95
|
9347
|
+
def strategy; end
|
8968
9348
|
end
|
8969
9349
|
|
8970
9350
|
# The default global ordering (defined order).
|
@@ -9011,26 +9391,41 @@ end
|
|
9011
9391
|
# source://rspec-core//lib/rspec/core/ordering.rb#58
|
9012
9392
|
RSpec::Core::Ordering::Random::MAX_32_BIT = T.let(T.unsafe(nil), Integer)
|
9013
9393
|
|
9394
|
+
# Orders items by modification time (most recent modified first).
|
9395
|
+
#
|
9396
|
+
# @private
|
9397
|
+
#
|
9398
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#63
|
9399
|
+
class RSpec::Core::Ordering::RecentlyModified
|
9400
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#64
|
9401
|
+
def order(list); end
|
9402
|
+
end
|
9403
|
+
|
9014
9404
|
# Stores the different ordering strategies.
|
9015
9405
|
#
|
9016
9406
|
# @private
|
9017
9407
|
#
|
9018
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9408
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#107
|
9019
9409
|
class RSpec::Core::Ordering::Registry
|
9020
9410
|
# @return [Registry] a new instance of Registry
|
9021
9411
|
#
|
9022
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9412
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#108
|
9023
9413
|
def initialize(configuration); end
|
9024
9414
|
|
9025
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9415
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#122
|
9026
9416
|
def fetch(name, &fallback); end
|
9027
9417
|
|
9028
|
-
#
|
9418
|
+
# @return [Boolean]
|
9419
|
+
#
|
9420
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#126
|
9421
|
+
def has_strategy?(name); end
|
9422
|
+
|
9423
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#130
|
9029
9424
|
def register(sym, strategy); end
|
9030
9425
|
|
9031
9426
|
# @return [Boolean]
|
9032
9427
|
#
|
9033
|
-
# source://rspec-core//lib/rspec/core/ordering.rb#
|
9428
|
+
# source://rspec-core//lib/rspec/core/ordering.rb#134
|
9034
9429
|
def used_random_seed?; end
|
9035
9430
|
end
|
9036
9431
|
|
@@ -9221,15 +9616,6 @@ class RSpec::Core::OutputWrapper
|
|
9221
9616
|
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
9222
9617
|
def noecho(*args, &block); end
|
9223
9618
|
|
9224
|
-
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
9225
|
-
def nonblock(*args, &block); end
|
9226
|
-
|
9227
|
-
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
9228
|
-
def nonblock=(*args, &block); end
|
9229
|
-
|
9230
|
-
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
9231
|
-
def nonblock?(*args, &block); end
|
9232
|
-
|
9233
9619
|
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
9234
9620
|
def nread(*args, &block); end
|
9235
9621
|
|
@@ -9427,16 +9813,16 @@ class RSpec::Core::Parser
|
|
9427
9813
|
|
9428
9814
|
private
|
9429
9815
|
|
9430
|
-
# source://rspec-core//lib/rspec/core/option_parser.rb#
|
9816
|
+
# source://rspec-core//lib/rspec/core/option_parser.rb#312
|
9431
9817
|
def add_tag_filter(options, filter_type, tag_name, value = T.unsafe(nil)); end
|
9432
9818
|
|
9433
|
-
# source://rspec-core//lib/rspec/core/option_parser.rb#
|
9819
|
+
# source://rspec-core//lib/rspec/core/option_parser.rb#320
|
9434
9820
|
def configure_only_failures(options); end
|
9435
9821
|
|
9436
|
-
# source://rspec-core//lib/rspec/core/option_parser.rb#
|
9822
|
+
# source://rspec-core//lib/rspec/core/option_parser.rb#39
|
9437
9823
|
def parser(options); end
|
9438
9824
|
|
9439
|
-
# source://rspec-core//lib/rspec/core/option_parser.rb#
|
9825
|
+
# source://rspec-core//lib/rspec/core/option_parser.rb#316
|
9440
9826
|
def set_fail_fast(options, value); end
|
9441
9827
|
|
9442
9828
|
class << self
|
@@ -9455,7 +9841,7 @@ module RSpec::Core::Pending
|
|
9455
9841
|
# pending can be removed.
|
9456
9842
|
#
|
9457
9843
|
# @example
|
9458
|
-
# describe "
|
9844
|
+
# describe "some behaviour" do
|
9459
9845
|
# # reported as "Pending: no reason given"
|
9460
9846
|
# it "is pending with no message" do
|
9461
9847
|
# pending
|
@@ -9468,27 +9854,19 @@ module RSpec::Core::Pending
|
|
9468
9854
|
# raise "broken"
|
9469
9855
|
# end
|
9470
9856
|
# end
|
9471
|
-
# @note `
|
9472
|
-
#
|
9473
|
-
#
|
9474
|
-
#
|
9475
|
-
#
|
9476
|
-
#
|
9477
|
-
#
|
9478
|
-
# end
|
9479
|
-
#
|
9480
|
-
# or pass `:pending => "something else getting finished"` to add a
|
9481
|
-
# message to the summary report:
|
9482
|
-
#
|
9483
|
-
# it "does something", :pending => "something else getting finished" do
|
9484
|
-
# # ...
|
9485
|
-
# end
|
9857
|
+
# @note When using `pending` inside an example body using this method
|
9858
|
+
# hooks, such as `before(:example)`, have already be run. This means that
|
9859
|
+
# a failure from the code in the `before` hook will prevent the example
|
9860
|
+
# from being considered pending, as the example body would not be
|
9861
|
+
# executed. If you need to consider hooks as pending as well you can use
|
9862
|
+
# the pending metadata as an alternative, e.g.
|
9863
|
+
# `it "does something", pending: "message"`.
|
9486
9864
|
# @overload pending
|
9487
9865
|
# @overload pending
|
9488
9866
|
# @param message [String] optional message to add to the summary report.
|
9489
9867
|
#
|
9490
|
-
# source://rspec-core//lib/rspec/core/pending.rb#
|
9491
|
-
def pending(message = T.unsafe(nil)); end
|
9868
|
+
# source://rspec-core//lib/rspec/core/pending.rb#62
|
9869
|
+
def pending(message = T.unsafe(nil), &_block); end
|
9492
9870
|
|
9493
9871
|
# Marks an example as pending and skips execution.
|
9494
9872
|
#
|
@@ -9509,7 +9887,7 @@ module RSpec::Core::Pending
|
|
9509
9887
|
# @param message [String] optional message to add to the summary report.
|
9510
9888
|
# @raise [SkipDeclaredInExample]
|
9511
9889
|
#
|
9512
|
-
# source://rspec-core//lib/rspec/core/pending.rb#
|
9890
|
+
# source://rspec-core//lib/rspec/core/pending.rb#110
|
9513
9891
|
def skip(message = T.unsafe(nil)); end
|
9514
9892
|
|
9515
9893
|
class << self
|
@@ -9518,7 +9896,7 @@ module RSpec::Core::Pending
|
|
9518
9896
|
# @param example [RSpec::Core::Example] the example to mark as fixed
|
9519
9897
|
# @private
|
9520
9898
|
#
|
9521
|
-
# source://rspec-core//lib/rspec/core/pending.rb#
|
9899
|
+
# source://rspec-core//lib/rspec/core/pending.rb#152
|
9522
9900
|
def mark_fixed!(example); end
|
9523
9901
|
|
9524
9902
|
# Mark example as pending.
|
@@ -9527,7 +9905,7 @@ module RSpec::Core::Pending
|
|
9527
9905
|
# @param message_or_bool [Boolean, String] the message to use, or true
|
9528
9906
|
# @private
|
9529
9907
|
#
|
9530
|
-
# source://rspec-core//lib/rspec/core/pending.rb#
|
9908
|
+
# source://rspec-core//lib/rspec/core/pending.rb#135
|
9531
9909
|
def mark_pending!(example, message_or_bool); end
|
9532
9910
|
|
9533
9911
|
# Mark example as skipped.
|
@@ -9536,7 +9914,7 @@ module RSpec::Core::Pending
|
|
9536
9914
|
# @param message_or_bool [Boolean, String] the message to use, or true
|
9537
9915
|
# @private
|
9538
9916
|
#
|
9539
|
-
# source://rspec-core//lib/rspec/core/pending.rb#
|
9917
|
+
# source://rspec-core//lib/rspec/core/pending.rb#124
|
9540
9918
|
def mark_skipped!(example, message_or_bool); end
|
9541
9919
|
end
|
9542
9920
|
end
|
@@ -9609,12 +9987,12 @@ class RSpec::Core::Reporter
|
|
9609
9987
|
|
9610
9988
|
# @private
|
9611
9989
|
#
|
9612
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
9990
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#215
|
9613
9991
|
def abort_with(msg, exit_status); end
|
9614
9992
|
|
9615
9993
|
# @private
|
9616
9994
|
#
|
9617
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
9995
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#194
|
9618
9996
|
def close_after; end
|
9619
9997
|
|
9620
9998
|
# @private
|
@@ -9672,7 +10050,7 @@ class RSpec::Core::Reporter
|
|
9672
10050
|
# @private
|
9673
10051
|
# @return [Boolean]
|
9674
10052
|
#
|
9675
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
10053
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#222
|
9676
10054
|
def fail_fast_limit_met?; end
|
9677
10055
|
|
9678
10056
|
# @private
|
@@ -9694,7 +10072,7 @@ class RSpec::Core::Reporter
|
|
9694
10072
|
|
9695
10073
|
# @private
|
9696
10074
|
#
|
9697
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
10075
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#207
|
9698
10076
|
def notify(event, notification); end
|
9699
10077
|
|
9700
10078
|
# Provides a way to notify of an exception that is not tied to any
|
@@ -9728,7 +10106,7 @@ class RSpec::Core::Reporter
|
|
9728
10106
|
# Registers a listener to a list of notifications. The reporter will send
|
9729
10107
|
# notification of events to all registered listeners.
|
9730
10108
|
#
|
9731
|
-
# @param listener [Object] An
|
10109
|
+
# @param listener [Object] An object that wishes to be notified of reporter
|
9732
10110
|
# events
|
9733
10111
|
# @param notifications [Array] Array of symbols represents the events a
|
9734
10112
|
# listener wishes to subscribe too
|
@@ -9765,25 +10143,25 @@ class RSpec::Core::Reporter
|
|
9765
10143
|
|
9766
10144
|
# @private
|
9767
10145
|
#
|
9768
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
9769
|
-
def stop; end
|
10146
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#201
|
10147
|
+
def stop(notification); end
|
9770
10148
|
|
9771
10149
|
private
|
9772
10150
|
|
9773
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
10151
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#243
|
9774
10152
|
def close; end
|
9775
10153
|
|
9776
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
10154
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#234
|
9777
10155
|
def ensure_listeners_ready; end
|
9778
10156
|
|
9779
10157
|
# @return [Boolean]
|
9780
10158
|
#
|
9781
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
10159
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#247
|
9782
10160
|
def mute_profile_output?; end
|
9783
10161
|
|
9784
10162
|
# @return [Boolean]
|
9785
10163
|
#
|
9786
|
-
# source://rspec-core//lib/rspec/core/reporter.rb#
|
10164
|
+
# source://rspec-core//lib/rspec/core/reporter.rb#253
|
9787
10165
|
def seed_used?; end
|
9788
10166
|
end
|
9789
10167
|
|
@@ -9859,7 +10237,7 @@ class RSpec::Core::Runner
|
|
9859
10237
|
|
9860
10238
|
# @private
|
9861
10239
|
#
|
9862
|
-
# source://rspec-core//lib/rspec/core/runner.rb#
|
10240
|
+
# source://rspec-core//lib/rspec/core/runner.rb#194
|
9863
10241
|
def exit_code(examples_passed = T.unsafe(nil)); end
|
9864
10242
|
|
9865
10243
|
# @attr_reader
|
@@ -9902,7 +10280,7 @@ class RSpec::Core::Runner
|
|
9902
10280
|
|
9903
10281
|
private
|
9904
10282
|
|
9905
|
-
# source://rspec-core//lib/rspec/core/runner.rb#
|
10283
|
+
# source://rspec-core//lib/rspec/core/runner.rb#203
|
9906
10284
|
def persist_example_statuses; end
|
9907
10285
|
|
9908
10286
|
class << self
|
@@ -10325,48 +10703,49 @@ end
|
|
10325
10703
|
|
10326
10704
|
# Contains information about the inclusion site of a shared example group.
|
10327
10705
|
#
|
10328
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10706
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#789
|
10329
10707
|
class RSpec::Core::SharedExampleGroupInclusionStackFrame
|
10708
|
+
# @private
|
10330
10709
|
# @return [SharedExampleGroupInclusionStackFrame] a new instance of SharedExampleGroupInclusionStackFrame
|
10331
10710
|
#
|
10332
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10711
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#796
|
10333
10712
|
def initialize(shared_group_name, inclusion_location); end
|
10334
10713
|
|
10335
10714
|
# @return [String] Description of this stack frame, in the form used by
|
10336
10715
|
# RSpec's built-in formatters.
|
10337
10716
|
#
|
10338
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10717
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#812
|
10339
10718
|
def description; end
|
10340
10719
|
|
10341
10720
|
# @return [String] The {#inclusion_location}, formatted for display by a formatter.
|
10342
10721
|
#
|
10343
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10722
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#802
|
10344
10723
|
def formatted_inclusion_location; end
|
10345
10724
|
|
10346
10725
|
# @return [String] the location where the shared example was included
|
10347
10726
|
#
|
10348
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10727
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#793
|
10349
10728
|
def inclusion_location; end
|
10350
10729
|
|
10351
10730
|
# @return [String] the name of the shared example group
|
10352
10731
|
#
|
10353
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10732
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#791
|
10354
10733
|
def shared_group_name; end
|
10355
10734
|
|
10356
10735
|
class << self
|
10357
10736
|
# @private
|
10358
10737
|
#
|
10359
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10738
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#818
|
10360
10739
|
def current_backtrace; end
|
10361
10740
|
|
10362
10741
|
# @private
|
10363
10742
|
#
|
10364
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10743
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#836
|
10365
10744
|
def shared_example_group_inclusions; end
|
10366
10745
|
|
10367
10746
|
# @private
|
10368
10747
|
#
|
10369
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
10748
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#823
|
10370
10749
|
def with_frame(name, location); end
|
10371
10750
|
end
|
10372
10751
|
end
|
@@ -10464,14 +10843,14 @@ RSpec::Core::ShellEscape::SHELLS_ALLOWING_UNQUOTED_IDS = T.let(T.unsafe(nil), Ar
|
|
10464
10843
|
#
|
10465
10844
|
# @private
|
10466
10845
|
#
|
10467
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
10846
|
+
# source://rspec-core//lib/rspec/core/example.rb#651
|
10468
10847
|
class RSpec::Core::SuiteHookContext < ::RSpec::Core::Example
|
10469
10848
|
# @return [SuiteHookContext] a new instance of SuiteHookContext
|
10470
10849
|
#
|
10471
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
10850
|
+
# source://rspec-core//lib/rspec/core/example.rb#652
|
10472
10851
|
def initialize(hook_description, reporter); end
|
10473
10852
|
|
10474
|
-
# source://rspec-core//lib/rspec/core/example.rb#
|
10853
|
+
# source://rspec-core//lib/rspec/core/example.rb#659
|
10475
10854
|
def set_exception(exception); end
|
10476
10855
|
end
|
10477
10856
|
|
@@ -10481,7 +10860,7 @@ end
|
|
10481
10860
|
#
|
10482
10861
|
# @private
|
10483
10862
|
#
|
10484
|
-
# source://rspec-core//lib/rspec/core.rb#
|
10863
|
+
# source://rspec-core//lib/rspec/core.rb#174
|
10485
10864
|
class RSpec::Core::Time
|
10486
10865
|
class << self
|
10487
10866
|
def now(in: T.unsafe(nil)); end
|
@@ -10531,53 +10910,53 @@ class RSpec::Core::World
|
|
10531
10910
|
# @api private
|
10532
10911
|
# @return [World] a new instance of World
|
10533
10912
|
#
|
10534
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10913
|
+
# source://rspec-core//lib/rspec/core/world.rb#26
|
10535
10914
|
def initialize(configuration = T.unsafe(nil)); end
|
10536
10915
|
|
10537
10916
|
# @api private
|
10538
10917
|
# @private
|
10539
10918
|
#
|
10540
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10919
|
+
# source://rspec-core//lib/rspec/core/world.rb#115
|
10541
10920
|
def all_example_groups; end
|
10542
10921
|
|
10543
10922
|
# @api private
|
10544
10923
|
# @private
|
10545
10924
|
#
|
10546
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10925
|
+
# source://rspec-core//lib/rspec/core/world.rb#120
|
10547
10926
|
def all_examples; end
|
10548
10927
|
|
10549
10928
|
# Add exclusion filters to announcement message.
|
10550
10929
|
#
|
10551
10930
|
# @api private
|
10552
10931
|
#
|
10553
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10932
|
+
# source://rspec-core//lib/rspec/core/world.rb#226
|
10554
10933
|
def announce_exclusion_filter(announcements); end
|
10555
10934
|
|
10556
10935
|
# Notify reporter of filters.
|
10557
10936
|
#
|
10558
10937
|
# @api private
|
10559
10938
|
#
|
10560
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10939
|
+
# source://rspec-core//lib/rspec/core/world.rb#171
|
10561
10940
|
def announce_filters; end
|
10562
10941
|
|
10563
10942
|
# Add inclusion filters to announcement message.
|
10564
10943
|
#
|
10565
10944
|
# @api private
|
10566
10945
|
#
|
10567
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10946
|
+
# source://rspec-core//lib/rspec/core/world.rb#217
|
10568
10947
|
def announce_inclusion_filter(announcements); end
|
10569
10948
|
|
10570
10949
|
# @api private
|
10571
10950
|
# @private
|
10572
10951
|
#
|
10573
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10952
|
+
# source://rspec-core//lib/rspec/core/world.rb#210
|
10574
10953
|
def everything_filtered_message; end
|
10575
10954
|
|
10576
10955
|
# Get count of examples to be run.
|
10577
10956
|
#
|
10578
10957
|
# @api private
|
10579
10958
|
#
|
10580
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10959
|
+
# source://rspec-core//lib/rspec/core/world.rb#109
|
10581
10960
|
def example_count(groups = T.unsafe(nil)); end
|
10582
10961
|
|
10583
10962
|
# @api private
|
@@ -10595,13 +10974,13 @@ class RSpec::Core::World
|
|
10595
10974
|
# @api private
|
10596
10975
|
# @private
|
10597
10976
|
#
|
10598
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10977
|
+
# source://rspec-core//lib/rspec/core/world.rb#102
|
10599
10978
|
def exclusion_filter; end
|
10600
10979
|
|
10601
10980
|
# @api private
|
10602
10981
|
# @private
|
10603
10982
|
#
|
10604
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10983
|
+
# source://rspec-core//lib/rspec/core/world.rb#69
|
10605
10984
|
def filter_manager; end
|
10606
10985
|
|
10607
10986
|
# @api private
|
@@ -10613,7 +10992,7 @@ class RSpec::Core::World
|
|
10613
10992
|
# @api private
|
10614
10993
|
# @private
|
10615
10994
|
#
|
10616
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
10995
|
+
# source://rspec-core//lib/rspec/core/world.rb#97
|
10617
10996
|
def inclusion_filter; end
|
10618
10997
|
|
10619
10998
|
# Used internally to signal that a failure outside of an example
|
@@ -10623,7 +11002,7 @@ class RSpec::Core::World
|
|
10623
11002
|
# @api private
|
10624
11003
|
# @private
|
10625
11004
|
#
|
10626
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11005
|
+
# source://rspec-core//lib/rspec/core/world.rb#24
|
10627
11006
|
def non_example_failure; end
|
10628
11007
|
|
10629
11008
|
# Used internally to signal that a failure outside of an example
|
@@ -10633,27 +11012,27 @@ class RSpec::Core::World
|
|
10633
11012
|
# @api private
|
10634
11013
|
# @private
|
10635
11014
|
#
|
10636
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11015
|
+
# source://rspec-core//lib/rspec/core/world.rb#24
|
10637
11016
|
def non_example_failure=(_arg0); end
|
10638
11017
|
|
10639
11018
|
# @api private
|
10640
11019
|
# @private
|
10641
11020
|
#
|
10642
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11021
|
+
# source://rspec-core//lib/rspec/core/world.rb#87
|
10643
11022
|
def num_example_groups_defined_in(file); end
|
10644
11023
|
|
10645
11024
|
# Apply ordering strategy from configuration to example groups.
|
10646
11025
|
#
|
10647
11026
|
# @api private
|
10648
11027
|
#
|
10649
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11028
|
+
# source://rspec-core//lib/rspec/core/world.rb#52
|
10650
11029
|
def ordered_example_groups; end
|
10651
11030
|
|
10652
11031
|
# Find line number of previous declaration.
|
10653
11032
|
#
|
10654
11033
|
# @api private
|
10655
11034
|
#
|
10656
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11035
|
+
# source://rspec-core//lib/rspec/core/world.rb#140
|
10657
11036
|
def preceding_declaration_line(absolute_file_name, filter_line); end
|
10658
11037
|
|
10659
11038
|
# Prepares filters so that they apply to example groups when they run.
|
@@ -10664,57 +11043,79 @@ class RSpec::Core::World
|
|
10664
11043
|
#
|
10665
11044
|
# @api public
|
10666
11045
|
#
|
10667
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11046
|
+
# source://rspec-core//lib/rspec/core/world.rb#43
|
10668
11047
|
def prepare_example_filtering; end
|
10669
11048
|
|
10670
11049
|
# Records an example group.
|
10671
11050
|
#
|
10672
11051
|
# @api private
|
10673
11052
|
#
|
10674
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11053
|
+
# source://rspec-core//lib/rspec/core/world.rb#81
|
10675
11054
|
def record(example_group); end
|
10676
11055
|
|
10677
11056
|
# @api private
|
10678
11057
|
# @private
|
10679
11058
|
#
|
10680
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11059
|
+
# source://rspec-core//lib/rspec/core/world.rb#74
|
10681
11060
|
def registered_example_group_files; end
|
10682
11061
|
|
10683
11062
|
# @api private
|
10684
11063
|
# @private
|
10685
11064
|
#
|
10686
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11065
|
+
# source://rspec-core//lib/rspec/core/world.rb#205
|
10687
11066
|
def report_filter_message(message); end
|
10688
11067
|
|
10689
11068
|
# @api private
|
10690
11069
|
# @private
|
10691
11070
|
#
|
10692
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11071
|
+
# source://rspec-core//lib/rspec/core/world.rb#149
|
10693
11072
|
def reporter; end
|
10694
11073
|
|
10695
11074
|
# Reset world to 'scratch' before running suite.
|
10696
11075
|
#
|
10697
11076
|
# @api private
|
10698
11077
|
#
|
10699
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11078
|
+
# source://rspec-core//lib/rspec/core/world.rb#60
|
10700
11079
|
def reset; end
|
10701
11080
|
|
11081
|
+
# Used internally to signify that a SystemExit occurred in
|
11082
|
+
# `Configuration#load_file_handling_errors`, and thus examples cannot
|
11083
|
+
# be counted accurately. Specifically, we cannot accurately report
|
11084
|
+
# "No examples found".
|
11085
|
+
#
|
10702
11086
|
# @api private
|
10703
11087
|
# @private
|
10704
11088
|
#
|
10705
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11089
|
+
# source://rspec-core//lib/rspec/core/world.rb#18
|
11090
|
+
def rspec_is_quitting; end
|
11091
|
+
|
11092
|
+
# Used internally to signify that a SystemExit occurred in
|
11093
|
+
# `Configuration#load_file_handling_errors`, and thus examples cannot
|
11094
|
+
# be counted accurately. Specifically, we cannot accurately report
|
11095
|
+
# "No examples found".
|
11096
|
+
#
|
11097
|
+
# @api private
|
11098
|
+
# @private
|
11099
|
+
#
|
11100
|
+
# source://rspec-core//lib/rspec/core/world.rb#18
|
11101
|
+
def rspec_is_quitting=(_arg0); end
|
11102
|
+
|
11103
|
+
# @api private
|
11104
|
+
# @private
|
11105
|
+
#
|
11106
|
+
# source://rspec-core//lib/rspec/core/world.rb#92
|
10706
11107
|
def shared_example_group_registry; end
|
10707
11108
|
|
10708
11109
|
# @api private
|
10709
11110
|
# @private
|
10710
11111
|
#
|
10711
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11112
|
+
# source://rspec-core//lib/rspec/core/world.rb#154
|
10712
11113
|
def source_from_file(path); end
|
10713
11114
|
|
10714
11115
|
# @api private
|
10715
11116
|
# @private
|
10716
11117
|
#
|
10717
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11118
|
+
# source://rspec-core//lib/rspec/core/world.rb#164
|
10718
11119
|
def syntax_highlighter; end
|
10719
11120
|
|
10720
11121
|
# Traverses the tree of each top level group.
|
@@ -10727,7 +11128,7 @@ class RSpec::Core::World
|
|
10727
11128
|
# @api private
|
10728
11129
|
# @private
|
10729
11130
|
#
|
10730
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11131
|
+
# source://rspec-core//lib/rspec/core/world.rb#131
|
10731
11132
|
def traverse_example_group_trees_until(&block); end
|
10732
11133
|
|
10733
11134
|
# Used internally to determine what to do when a SIGINT is received.
|
@@ -10748,12 +11149,12 @@ class RSpec::Core::World
|
|
10748
11149
|
|
10749
11150
|
# @api private
|
10750
11151
|
#
|
10751
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11152
|
+
# source://rspec-core//lib/rspec/core/world.rb#234
|
10752
11153
|
def descending_declaration_line_numbers_by_file; end
|
10753
11154
|
|
10754
11155
|
# @api private
|
10755
11156
|
#
|
10756
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11157
|
+
# source://rspec-core//lib/rspec/core/world.rb#252
|
10757
11158
|
def fail_if_config_and_cli_options_invalid; end
|
10758
11159
|
end
|
10759
11160
|
|
@@ -10762,39 +11163,39 @@ end
|
|
10762
11163
|
# @api private
|
10763
11164
|
# @private
|
10764
11165
|
#
|
10765
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11166
|
+
# source://rspec-core//lib/rspec/core/world.rb#264
|
10766
11167
|
module RSpec::Core::World::Null
|
10767
11168
|
class << self
|
10768
11169
|
# @api private
|
10769
11170
|
#
|
10770
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11171
|
+
# source://rspec-core//lib/rspec/core/world.rb#280
|
10771
11172
|
def all_example_groups; end
|
10772
11173
|
|
10773
11174
|
# :nocov:
|
10774
11175
|
#
|
10775
11176
|
# @api private
|
10776
11177
|
#
|
10777
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11178
|
+
# source://rspec-core//lib/rspec/core/world.rb#276
|
10778
11179
|
def example_groups; end
|
10779
11180
|
|
10780
11181
|
# @api private
|
10781
11182
|
#
|
10782
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11183
|
+
# source://rspec-core//lib/rspec/core/world.rb#265
|
10783
11184
|
def non_example_failure; end
|
10784
11185
|
|
10785
11186
|
# @api private
|
10786
11187
|
#
|
10787
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11188
|
+
# source://rspec-core//lib/rspec/core/world.rb#266
|
10788
11189
|
def non_example_failure=(_); end
|
10789
11190
|
|
10790
11191
|
# @api private
|
10791
11192
|
#
|
10792
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11193
|
+
# source://rspec-core//lib/rspec/core/world.rb#268
|
10793
11194
|
def registered_example_group_files; end
|
10794
11195
|
|
10795
11196
|
# @api private
|
10796
11197
|
#
|
10797
|
-
# source://rspec-core//lib/rspec/core/world.rb#
|
11198
|
+
# source://rspec-core//lib/rspec/core/world.rb#272
|
10798
11199
|
def traverse_example_group_trees_until; end
|
10799
11200
|
end
|
10800
11201
|
end
|
@@ -10804,31 +11205,31 @@ end
|
|
10804
11205
|
#
|
10805
11206
|
# @private
|
10806
11207
|
#
|
10807
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
11208
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#846
|
10808
11209
|
module RSpec::ExampleGroups
|
10809
11210
|
extend ::RSpec::Support::RecursiveConstMethods
|
10810
11211
|
|
10811
11212
|
class << self
|
10812
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
11213
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#849
|
10813
11214
|
def assign_const(group); end
|
10814
11215
|
|
10815
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
11216
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#869
|
10816
11217
|
def base_name_for(group); end
|
10817
11218
|
|
10818
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
11219
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#857
|
10819
11220
|
def constant_scope_for(group); end
|
10820
11221
|
|
10821
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
11222
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#902
|
10822
11223
|
def disambiguate(name, const_scope); end
|
10823
11224
|
|
10824
|
-
# source://rspec-core//lib/rspec/core/example_group.rb#
|
11225
|
+
# source://rspec-core//lib/rspec/core/example_group.rb#863
|
10825
11226
|
def remove_all_constants; end
|
10826
11227
|
end
|
10827
11228
|
end
|
10828
11229
|
|
10829
11230
|
# @private
|
10830
11231
|
#
|
10831
|
-
# source://rspec-core//lib/rspec/core.rb#
|
11232
|
+
# source://rspec-core//lib/rspec/core.rb#187
|
10832
11233
|
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
10833
11234
|
|
10834
11235
|
# @private
|