ruby-paseto 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/paseto/paserk_types.rb +1 -1
- data/lib/paseto/util.rb +1 -2
- data/lib/paseto/v3/public.rb +3 -65
- data/lib/paseto/version.rb +1 -1
- data/paseto.gemspec +1 -13
- data/sorbet/rbi/gems/{irb@1.5.1.rbi → irb@1.6.3.rbi} +44 -44
- data/sorbet/rbi/gems/{oj@3.13.23.rbi → oj@3.14.2.rbi} +4 -2
- data/sorbet/rbi/gems/{openssl@3.0.1.rbi → openssl@3.1.0.rbi} +63 -59
- data/sorbet/rbi/gems/{regexp_parser@2.6.1.rbi → regexp_parser@2.7.0.rbi} +250 -151
- data/sorbet/rbi/gems/{rspec-core@3.12.0.rbi → rspec-core@3.12.1.rbi} +30 -112
- data/sorbet/rbi/gems/{rspec-expectations@3.12.0.rbi → rspec-expectations@3.12.2.rbi} +201 -185
- data/sorbet/rbi/gems/{rspec-mocks@3.12.0.rbi → rspec-mocks@3.12.4.rbi} +218 -207
- data/sorbet/rbi/gems/{ruby-progressbar@1.11.0.rbi → ruby-progressbar@1.13.0.rbi} +364 -286
- data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +62 -49
- data/sorbet/rbi/gems/{unicode-display_width@2.3.0.rbi → unicode-display_width@2.4.2.rbi} +24 -7
- data/sorbet/rbi/gems/{yard-sorbet@0.7.0.rbi → yard-sorbet@0.8.0.rbi} +91 -41
- data/sorbet/rbi/gems/zeitwerk@2.6.7.rbi +8 -0
- data/sorbet/tapioca/config.yml +1 -1
- metadata +25 -173
- data/sorbet/rbi/gems/zeitwerk@2.6.6.rbi +0 -950
- /data/sorbet/rbi/gems/{io-console@0.5.11.rbi → io-console@0.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.3.1.rbi → reline@0.3.2.rbi} +0 -0
@@ -10,70 +10,70 @@
|
|
10
10
|
# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#1
|
11
11
|
module RSpec
|
12
12
|
class << self
|
13
|
-
# source://rspec-core/3.12.
|
13
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#70
|
14
14
|
def clear_examples; end
|
15
15
|
|
16
|
-
# source://rspec-core/3.12.
|
16
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#85
|
17
17
|
def configuration; end
|
18
18
|
|
19
|
-
# source://rspec-core/3.12.
|
19
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#49
|
20
20
|
def configuration=(_arg0); end
|
21
21
|
|
22
|
-
# source://rspec-core/3.12.
|
22
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#97
|
23
23
|
def configure; end
|
24
24
|
|
25
|
-
# source://rspec-core/3.12.
|
25
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#194
|
26
26
|
def const_missing(name); end
|
27
27
|
|
28
|
-
# source://rspec-core/3.12.
|
28
|
+
# source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
|
29
29
|
def context(*args, &example_group_block); end
|
30
30
|
|
31
|
-
# source://rspec-core/3.12.
|
31
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#122
|
32
32
|
def current_example; end
|
33
33
|
|
34
|
-
# source://rspec-core/3.12.
|
34
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#128
|
35
35
|
def current_example=(example); end
|
36
36
|
|
37
|
-
# source://rspec-core/3.12.
|
37
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#154
|
38
38
|
def current_scope; end
|
39
39
|
|
40
|
-
# source://rspec-core/3.12.
|
40
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#134
|
41
41
|
def current_scope=(scope); end
|
42
42
|
|
43
|
-
# source://rspec-core/3.12.
|
43
|
+
# source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
|
44
44
|
def describe(*args, &example_group_block); end
|
45
45
|
|
46
|
-
# source://rspec-core/3.12.
|
46
|
+
# source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
|
47
47
|
def example_group(*args, &example_group_block); end
|
48
48
|
|
49
|
-
# source://rspec-core/3.12.
|
49
|
+
# source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
|
50
50
|
def fcontext(*args, &example_group_block); end
|
51
51
|
|
52
|
-
# source://rspec-core/3.12.
|
52
|
+
# source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
|
53
53
|
def fdescribe(*args, &example_group_block); end
|
54
54
|
|
55
|
-
# source://rspec-core/3.12.
|
55
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#58
|
56
56
|
def reset; end
|
57
57
|
|
58
|
-
# source://rspec-core/3.12.
|
58
|
+
# source://rspec-core/3.12.1/lib/rspec/core/shared_example_group.rb#110
|
59
59
|
def shared_context(name, *args, &block); end
|
60
60
|
|
61
|
-
# source://rspec-core/3.12.
|
61
|
+
# source://rspec-core/3.12.1/lib/rspec/core/shared_example_group.rb#110
|
62
62
|
def shared_examples(name, *args, &block); end
|
63
63
|
|
64
|
-
# source://rspec-core/3.12.
|
64
|
+
# source://rspec-core/3.12.1/lib/rspec/core/shared_example_group.rb#110
|
65
65
|
def shared_examples_for(name, *args, &block); end
|
66
66
|
|
67
|
-
# source://rspec-core/3.12.
|
67
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#160
|
68
68
|
def world; end
|
69
69
|
|
70
|
-
# source://rspec-core/3.12.
|
70
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#49
|
71
71
|
def world=(_arg0); end
|
72
72
|
|
73
|
-
# source://rspec-core/3.12.
|
73
|
+
# source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
|
74
74
|
def xcontext(*args, &example_group_block); end
|
75
75
|
|
76
|
-
# source://rspec-core/3.12.
|
76
|
+
# source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
|
77
77
|
def xdescribe(*args, &example_group_block); end
|
78
78
|
end
|
79
79
|
end
|
@@ -796,10 +796,10 @@ module RSpec::Expectations::ExpectationTarget::UndefinedValue; end
|
|
796
796
|
class RSpec::Expectations::FailureAggregator
|
797
797
|
# @return [FailureAggregator] a new instance of FailureAggregator
|
798
798
|
#
|
799
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
799
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#90
|
800
800
|
def initialize(block_label, metadata); end
|
801
801
|
|
802
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
802
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#22
|
803
803
|
def aggregate; end
|
804
804
|
|
805
805
|
# Returns the value of attribute block_label.
|
@@ -810,10 +810,10 @@ class RSpec::Expectations::FailureAggregator
|
|
810
810
|
# This method is defined to satisfy the callable interface
|
811
811
|
# expected by `RSpec::Support.with_failure_notifier`.
|
812
812
|
#
|
813
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
813
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#59
|
814
814
|
def call(failure, options); end
|
815
815
|
|
816
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
816
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#49
|
817
817
|
def failures; end
|
818
818
|
|
819
819
|
# Returns the value of attribute metadata.
|
@@ -821,20 +821,36 @@ class RSpec::Expectations::FailureAggregator
|
|
821
821
|
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#5
|
822
822
|
def metadata; end
|
823
823
|
|
824
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
824
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#53
|
825
825
|
def other_errors; end
|
826
826
|
|
827
827
|
private
|
828
828
|
|
829
829
|
# Using `caller` performs better (and is simpler) than `raise` on most Rubies.
|
830
830
|
#
|
831
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
831
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#85
|
832
832
|
def assign_backtrace(failure); end
|
833
833
|
|
834
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
834
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#96
|
835
835
|
def notify_aggregated_failures; end
|
836
836
|
end
|
837
837
|
|
838
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#20
|
839
|
+
RSpec::Expectations::FailureAggregator::AGGREGATED_FAILURE = T.let(T.unsafe(nil), RSpec::Expectations::FailureAggregator::AggregatedFailure)
|
840
|
+
|
841
|
+
# @private
|
842
|
+
#
|
843
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#8
|
844
|
+
class RSpec::Expectations::FailureAggregator::AggregatedFailure
|
845
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#15
|
846
|
+
def inspect; end
|
847
|
+
end
|
848
|
+
|
849
|
+
# @private
|
850
|
+
#
|
851
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#10
|
852
|
+
RSpec::Expectations::FailureAggregator::AggregatedFailure::MESSAGE = T.let(T.unsafe(nil), String)
|
853
|
+
|
838
854
|
# RSpec 3.0 was released with the class name misspelled. For SemVer compatibility,
|
839
855
|
# we will provide this misspelled alias until 4.0.
|
840
856
|
#
|
@@ -922,88 +938,88 @@ end
|
|
922
938
|
class RSpec::Expectations::MultipleExpectationsNotMetError < ::RSpec::Expectations::ExpectationNotMetError
|
923
939
|
# @return [MultipleExpectationsNotMetError] a new instance of MultipleExpectationsNotMetError
|
924
940
|
#
|
925
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
941
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#153
|
926
942
|
def initialize(failure_aggregator); end
|
927
943
|
|
928
944
|
# @return [String] The user-assigned label for the aggregation block.
|
929
945
|
#
|
930
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
946
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#128
|
931
947
|
def aggregation_block_label; end
|
932
948
|
|
933
949
|
# @return [Hash] The metadata hash passed to `aggregate_failures`.
|
934
950
|
#
|
935
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
951
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#133
|
936
952
|
def aggregation_metadata; end
|
937
953
|
|
938
954
|
# @return [Array<Exception>] The list of expectation failures and other exceptions, combined.
|
939
955
|
#
|
940
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
956
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#125
|
941
957
|
def all_exceptions; end
|
942
958
|
|
943
959
|
# return [String] A description of the failure/error counts.
|
944
960
|
#
|
945
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
961
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#144
|
946
962
|
def exception_count_description; end
|
947
963
|
|
948
964
|
# @return [Array<RSpec::Expectations::ExpectationNotMetError>] The list of expectation failures.
|
949
965
|
#
|
950
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
966
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#115
|
951
967
|
def failures; end
|
952
968
|
|
953
969
|
# @return [String] The fully formatted exception message.
|
954
970
|
#
|
955
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
971
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#110
|
956
972
|
def message; end
|
957
973
|
|
958
974
|
# @return [Array<Exception>] The list of other exceptions.
|
959
975
|
#
|
960
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
976
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#120
|
961
977
|
def other_errors; end
|
962
978
|
|
963
979
|
# @return [String] A summary of the failure, including the block label and a count of failures.
|
964
980
|
#
|
965
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
981
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#138
|
966
982
|
def summary; end
|
967
983
|
|
968
984
|
private
|
969
985
|
|
970
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
986
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#185
|
971
987
|
def backtrace_line(line); end
|
972
988
|
|
973
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
989
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#158
|
974
990
|
def block_description; end
|
975
991
|
|
976
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
992
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#167
|
977
993
|
def enumerated(exceptions, index_offset); end
|
978
994
|
|
979
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
995
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#197
|
980
996
|
def enumerated_errors; end
|
981
997
|
|
982
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
998
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#193
|
983
999
|
def enumerated_failures; end
|
984
1000
|
|
985
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1001
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#175
|
986
1002
|
def exclusion_patterns; end
|
987
1003
|
|
988
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1004
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#181
|
989
1005
|
def format_backtrace(backtrace); end
|
990
1006
|
|
991
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1007
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#212
|
992
1008
|
def indentation; end
|
993
1009
|
|
994
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1010
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#203
|
995
1011
|
def indented(failure_message, index); end
|
996
1012
|
|
997
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1013
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#224
|
998
1014
|
def index_label(index); end
|
999
1015
|
|
1000
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1016
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#216
|
1001
1017
|
def longest_index_label_width; end
|
1002
1018
|
|
1003
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1019
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#163
|
1004
1020
|
def pluralize(noun, count); end
|
1005
1021
|
|
1006
|
-
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#
|
1022
|
+
# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#220
|
1007
1023
|
def width_of_label(index); end
|
1008
1024
|
end
|
1009
1025
|
|
@@ -1228,7 +1244,7 @@ module RSpec::Expectations::Version; end
|
|
1228
1244
|
# source://rspec-expectations//lib/rspec/expectations/version.rb#5
|
1229
1245
|
RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String)
|
1230
1246
|
|
1231
|
-
# source://rspec-core/3.12.
|
1247
|
+
# source://rspec-core/3.12.1/lib/rspec/core.rb#187
|
1232
1248
|
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
1233
1249
|
|
1234
1250
|
# RSpec::Matchers provides a number of useful matchers we use to define
|
@@ -1539,7 +1555,7 @@ module RSpec::Matchers
|
|
1539
1555
|
# @param message [Symbol] the message to send the receiver
|
1540
1556
|
#
|
1541
1557
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1542
|
-
def a_block_changing(*args, &block); end
|
1558
|
+
def a_block_changing(*args, **_arg1, &block); end
|
1543
1559
|
|
1544
1560
|
# With no arg, passes if the block outputs `to_stdout` or `to_stderr`.
|
1545
1561
|
# With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`.
|
@@ -1572,7 +1588,7 @@ module RSpec::Matchers
|
|
1572
1588
|
# are thus significantly (~30x) slower than `to_stdout` and `to_stderr`.
|
1573
1589
|
#
|
1574
1590
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1575
|
-
def a_block_outputting(*args, &block); end
|
1591
|
+
def a_block_outputting(*args, **_arg1, &block); end
|
1576
1592
|
|
1577
1593
|
# With no args, matches if any error is raised.
|
1578
1594
|
# With a named error, matches only if that specific error is raised.
|
@@ -1592,7 +1608,7 @@ module RSpec::Matchers
|
|
1592
1608
|
# expect { do_something_risky }.not_to raise_error
|
1593
1609
|
#
|
1594
1610
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1595
|
-
def a_block_raising(*args, &block); end
|
1611
|
+
def a_block_raising(*args, **_arg1, &block); end
|
1596
1612
|
|
1597
1613
|
# Given no argument, matches if a proc throws any Symbol.
|
1598
1614
|
#
|
@@ -1611,7 +1627,7 @@ module RSpec::Matchers
|
|
1611
1627
|
# expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit')
|
1612
1628
|
#
|
1613
1629
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1614
|
-
def a_block_throwing(*args, &block); end
|
1630
|
+
def a_block_throwing(*args, **_arg1, &block); end
|
1615
1631
|
|
1616
1632
|
# Passes if the method called in the expect block yields, regardless
|
1617
1633
|
# of whether or not arguments are yielded.
|
@@ -1623,7 +1639,7 @@ module RSpec::Matchers
|
|
1623
1639
|
# the method-under-test as a block.
|
1624
1640
|
#
|
1625
1641
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1626
|
-
def a_block_yielding_control(*args, &block); end
|
1642
|
+
def a_block_yielding_control(*args, **_arg1, &block); end
|
1627
1643
|
|
1628
1644
|
# Designed for use with methods that repeatedly yield (such as
|
1629
1645
|
# iterators). Passes if the method called in the expect block yields
|
@@ -1641,7 +1657,7 @@ module RSpec::Matchers
|
|
1641
1657
|
# the method-under-test as a block.
|
1642
1658
|
#
|
1643
1659
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1644
|
-
def a_block_yielding_successive_args(*args, &block); end
|
1660
|
+
def a_block_yielding_successive_args(*args, **_arg1, &block); end
|
1645
1661
|
|
1646
1662
|
# Given no arguments, matches if the method called in the expect
|
1647
1663
|
# block yields with arguments (regardless of what they are or how
|
@@ -1668,7 +1684,7 @@ module RSpec::Matchers
|
|
1668
1684
|
# multiple times.
|
1669
1685
|
#
|
1670
1686
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1671
|
-
def a_block_yielding_with_args(*args, &block); end
|
1687
|
+
def a_block_yielding_with_args(*args, **_arg1, &block); end
|
1672
1688
|
|
1673
1689
|
# Passes if the method called in the expect block yields with
|
1674
1690
|
# no arguments. Fails if it does not yield, or yields with arguments.
|
@@ -1683,7 +1699,7 @@ module RSpec::Matchers
|
|
1683
1699
|
# multiple times.
|
1684
1700
|
#
|
1685
1701
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1686
|
-
def a_block_yielding_with_no_args(*args, &block); end
|
1702
|
+
def a_block_yielding_with_no_args(*args, **_arg1, &block); end
|
1687
1703
|
|
1688
1704
|
# Passes if actual contains all of the expected regardless of order.
|
1689
1705
|
# This works for collections. Pass in multiple args and it will only
|
@@ -1697,7 +1713,7 @@ module RSpec::Matchers
|
|
1697
1713
|
# @see #match_array
|
1698
1714
|
#
|
1699
1715
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1700
|
-
def a_collection_containing_exactly(*args, &block); end
|
1716
|
+
def a_collection_containing_exactly(*args, **_arg1, &block); end
|
1701
1717
|
|
1702
1718
|
# Matches if the actual value ends with the expected value(s). In the case
|
1703
1719
|
# of a string, matches against the last `expected.length` characters of the
|
@@ -1710,7 +1726,7 @@ module RSpec::Matchers
|
|
1710
1726
|
# expect([0, 2, 3, 4, 4]).to end_with 3, 4
|
1711
1727
|
#
|
1712
1728
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1713
|
-
def a_collection_ending_with(*args, &block); end
|
1729
|
+
def a_collection_ending_with(*args, **_arg1, &block); end
|
1714
1730
|
|
1715
1731
|
# Passes if actual includes expected. This works for
|
1716
1732
|
# collections and Strings. You can also pass in multiple args
|
@@ -1731,7 +1747,7 @@ module RSpec::Matchers
|
|
1731
1747
|
# expect(:a => 1, :b => 2).not_to include(:a => 2)
|
1732
1748
|
#
|
1733
1749
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1734
|
-
def a_collection_including(*args, &block); end
|
1750
|
+
def a_collection_including(*args, **_arg1, &block); end
|
1735
1751
|
|
1736
1752
|
# Matches if the actual value starts with the expected value(s). In the
|
1737
1753
|
# case of a string, matches against the first `expected.length` characters
|
@@ -1744,17 +1760,17 @@ module RSpec::Matchers
|
|
1744
1760
|
# expect([0, 2, 3, 4, 4]).to start_with 0, 1
|
1745
1761
|
#
|
1746
1762
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1747
|
-
def a_collection_starting_with(*args, &block); end
|
1763
|
+
def a_collection_starting_with(*args, **_arg1, &block); end
|
1748
1764
|
|
1749
1765
|
# Passes if actual is falsey (false or nil)
|
1750
1766
|
#
|
1751
1767
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1752
|
-
def a_falsey_value(*args, &block); end
|
1768
|
+
def a_falsey_value(*args, **_arg1, &block); end
|
1753
1769
|
|
1754
1770
|
# Passes if actual is falsey (false or nil)
|
1755
1771
|
#
|
1756
1772
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1757
|
-
def a_falsy_value(*args, &block); end
|
1773
|
+
def a_falsy_value(*args, **_arg1, &block); end
|
1758
1774
|
|
1759
1775
|
# Passes if actual includes expected. This works for
|
1760
1776
|
# collections and Strings. You can also pass in multiple args
|
@@ -1775,7 +1791,7 @@ module RSpec::Matchers
|
|
1775
1791
|
# expect(:a => 1, :b => 2).not_to include(:a => 2)
|
1776
1792
|
#
|
1777
1793
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1778
|
-
def a_hash_including(*args, &block); end
|
1794
|
+
def a_hash_including(*args, **_arg1, &block); end
|
1779
1795
|
|
1780
1796
|
# Passes if actual.kind_of?(expected)
|
1781
1797
|
#
|
@@ -1785,12 +1801,12 @@ module RSpec::Matchers
|
|
1785
1801
|
# expect(5).not_to be_a_kind_of(Float)
|
1786
1802
|
#
|
1787
1803
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1788
|
-
def a_kind_of(*args, &block); end
|
1804
|
+
def a_kind_of(*args, **_arg1, &block); end
|
1789
1805
|
|
1790
1806
|
# Passes if actual is nil
|
1791
1807
|
#
|
1792
1808
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1793
|
-
def a_nil_value(*args, &block); end
|
1809
|
+
def a_nil_value(*args, **_arg1, &block); end
|
1794
1810
|
|
1795
1811
|
# Passes if actual covers expected. This works for
|
1796
1812
|
# Ranges. You can also pass in multiple args
|
@@ -1806,7 +1822,7 @@ module RSpec::Matchers
|
|
1806
1822
|
# expect(1..10).not_to cover(5) # fails
|
1807
1823
|
#
|
1808
1824
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1809
|
-
def a_range_covering(*args, &block); end
|
1825
|
+
def a_range_covering(*args, **_arg1, &block); end
|
1810
1826
|
|
1811
1827
|
# Matches if the actual value ends with the expected value(s). In the case
|
1812
1828
|
# of a string, matches against the last `expected.length` characters of the
|
@@ -1819,7 +1835,7 @@ module RSpec::Matchers
|
|
1819
1835
|
# expect([0, 2, 3, 4, 4]).to end_with 3, 4
|
1820
1836
|
#
|
1821
1837
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1822
|
-
def a_string_ending_with(*args, &block); end
|
1838
|
+
def a_string_ending_with(*args, **_arg1, &block); end
|
1823
1839
|
|
1824
1840
|
# Passes if actual includes expected. This works for
|
1825
1841
|
# collections and Strings. You can also pass in multiple args
|
@@ -1840,7 +1856,7 @@ module RSpec::Matchers
|
|
1840
1856
|
# expect(:a => 1, :b => 2).not_to include(:a => 2)
|
1841
1857
|
#
|
1842
1858
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1843
|
-
def a_string_including(*args, &block); end
|
1859
|
+
def a_string_including(*args, **_arg1, &block); end
|
1844
1860
|
|
1845
1861
|
# Given a `Regexp` or `String`, passes if `actual.match(pattern)`
|
1846
1862
|
# Given an arbitrary nested data structure (e.g. arrays and hashes),
|
@@ -1873,7 +1889,7 @@ module RSpec::Matchers
|
|
1873
1889
|
# `match` could not be used there), but is no longer needed in 3.x.
|
1874
1890
|
#
|
1875
1891
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1876
|
-
def a_string_matching(*args, &block); end
|
1892
|
+
def a_string_matching(*args, **_arg1, &block); end
|
1877
1893
|
|
1878
1894
|
# Matches if the actual value starts with the expected value(s). In the
|
1879
1895
|
# case of a string, matches against the first `expected.length` characters
|
@@ -1886,12 +1902,12 @@ module RSpec::Matchers
|
|
1886
1902
|
# expect([0, 2, 3, 4, 4]).to start_with 0, 1
|
1887
1903
|
#
|
1888
1904
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1889
|
-
def a_string_starting_with(*args, &block); end
|
1905
|
+
def a_string_starting_with(*args, **_arg1, &block); end
|
1890
1906
|
|
1891
1907
|
# Passes if actual is truthy (anything but false or nil)
|
1892
1908
|
#
|
1893
1909
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1894
|
-
def a_truthy_value(*args, &block); end
|
1910
|
+
def a_truthy_value(*args, **_arg1, &block); end
|
1895
1911
|
|
1896
1912
|
# Given true, false, or nil, will pass if actual value is true, false or
|
1897
1913
|
# nil (respectively). Given no args means the caller should satisfy an if
|
@@ -1915,7 +1931,7 @@ module RSpec::Matchers
|
|
1915
1931
|
# expect(actual).not_to be_[arbitrary_predicate](*args)
|
1916
1932
|
#
|
1917
1933
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1918
|
-
def a_value(*args, &block); end
|
1934
|
+
def a_value(*args, **_arg1, &block); end
|
1919
1935
|
|
1920
1936
|
# Passes if actual.between?(min, max). Works with any Comparable object,
|
1921
1937
|
# including String, Symbol, Time, or Numeric (Fixnum, Bignum, Integer,
|
@@ -1930,7 +1946,7 @@ module RSpec::Matchers
|
|
1930
1946
|
# expect(10).not_to be_between(1, 10).exclusive
|
1931
1947
|
#
|
1932
1948
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1933
|
-
def a_value_between(*args, &block); end
|
1949
|
+
def a_value_between(*args, **_arg1, &block); end
|
1934
1950
|
|
1935
1951
|
# Passes if actual == expected +/- delta
|
1936
1952
|
#
|
@@ -1939,7 +1955,7 @@ module RSpec::Matchers
|
|
1939
1955
|
# expect(result).not_to be_within(0.5).of(3.0)
|
1940
1956
|
#
|
1941
1957
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
1942
|
-
def a_value_within(*args, &block); end
|
1958
|
+
def a_value_within(*args, **_arg1, &block); end
|
1943
1959
|
|
1944
1960
|
# Allows multiple expectations in the provided block to fail, and then
|
1945
1961
|
# aggregates them into a single exception, rather than aborting on the
|
@@ -1993,7 +2009,7 @@ module RSpec::Matchers
|
|
1993
2009
|
|
1994
2010
|
# An alternate form of `contain_exactly` that accepts
|
1995
2011
|
# the expected contents as a single array arg rather
|
1996
|
-
#
|
2012
|
+
# than splatted out as individual items.
|
1997
2013
|
#
|
1998
2014
|
# @example
|
1999
2015
|
# expect(results).to contain_exactly(1, 2)
|
@@ -2002,7 +2018,7 @@ module RSpec::Matchers
|
|
2002
2018
|
# @see #contain_exactly
|
2003
2019
|
#
|
2004
2020
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2005
|
-
def an_array_matching(*args, &block); end
|
2021
|
+
def an_array_matching(*args, **_arg1, &block); end
|
2006
2022
|
|
2007
2023
|
# Passes if actual.instance_of?(expected)
|
2008
2024
|
#
|
@@ -2012,7 +2028,7 @@ module RSpec::Matchers
|
|
2012
2028
|
# expect(5).not_to be_an_instance_of(Float)
|
2013
2029
|
#
|
2014
2030
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2015
|
-
def an_instance_of(*args, &block); end
|
2031
|
+
def an_instance_of(*args, **_arg1, &block); end
|
2016
2032
|
|
2017
2033
|
# Passes if <tt>actual == expected</tt>.
|
2018
2034
|
#
|
@@ -2024,7 +2040,7 @@ module RSpec::Matchers
|
|
2024
2040
|
# expect(5).not_to eq(3)
|
2025
2041
|
#
|
2026
2042
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2027
|
-
def an_object_eq_to(*args, &block); end
|
2043
|
+
def an_object_eq_to(*args, **_arg1, &block); end
|
2028
2044
|
|
2029
2045
|
# Passes if `actual.eql?(expected)`
|
2030
2046
|
#
|
@@ -2036,7 +2052,7 @@ module RSpec::Matchers
|
|
2036
2052
|
# expect(5).not_to eql(3)
|
2037
2053
|
#
|
2038
2054
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2039
|
-
def an_object_eql_to(*args, &block); end
|
2055
|
+
def an_object_eql_to(*args, **_arg1, &block); end
|
2040
2056
|
|
2041
2057
|
# Passes if <tt>actual.equal?(expected)</tt> (object identity).
|
2042
2058
|
#
|
@@ -2048,7 +2064,7 @@ module RSpec::Matchers
|
|
2048
2064
|
# expect("5").not_to equal("5") # Strings that look the same are not the same object
|
2049
2065
|
#
|
2050
2066
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2051
|
-
def an_object_equal_to(*args, &block); end
|
2067
|
+
def an_object_equal_to(*args, **_arg1, &block); end
|
2052
2068
|
|
2053
2069
|
# Passes if `actual.exist?` or `actual.exists?`
|
2054
2070
|
#
|
@@ -2056,7 +2072,7 @@ module RSpec::Matchers
|
|
2056
2072
|
# expect(File).to exist("path/to/file")
|
2057
2073
|
#
|
2058
2074
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2059
|
-
def an_object_existing(*args, &block); end
|
2075
|
+
def an_object_existing(*args, **_arg1, &block); end
|
2060
2076
|
|
2061
2077
|
# Passes if actual's attribute values match the expected attributes hash.
|
2062
2078
|
# This works no matter how you define your attribute readers.
|
@@ -2072,7 +2088,7 @@ module RSpec::Matchers
|
|
2072
2088
|
# @note It will fail if actual doesn't respond to any of the expected attributes.
|
2073
2089
|
#
|
2074
2090
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2075
|
-
def an_object_having_attributes(*args, &block); end
|
2091
|
+
def an_object_having_attributes(*args, **_arg1, &block); end
|
2076
2092
|
|
2077
2093
|
# Given a `Regexp` or `String`, passes if `actual.match(pattern)`
|
2078
2094
|
# Given an arbitrary nested data structure (e.g. arrays and hashes),
|
@@ -2105,7 +2121,7 @@ module RSpec::Matchers
|
|
2105
2121
|
# `match` could not be used there), but is no longer needed in 3.x.
|
2106
2122
|
#
|
2107
2123
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2108
|
-
def an_object_matching(*args, &block); end
|
2124
|
+
def an_object_matching(*args, **_arg1, &block); end
|
2109
2125
|
|
2110
2126
|
# Matches if the target object responds to all of the names
|
2111
2127
|
# provided. Names can be Strings or Symbols.
|
@@ -2114,7 +2130,7 @@ module RSpec::Matchers
|
|
2114
2130
|
# expect("string").to respond_to(:length)
|
2115
2131
|
#
|
2116
2132
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2117
|
-
def an_object_responding_to(*args, &block); end
|
2133
|
+
def an_object_responding_to(*args, **_arg1, &block); end
|
2118
2134
|
|
2119
2135
|
# Passes if the submitted block returns true. Yields target to the
|
2120
2136
|
# block.
|
@@ -2132,7 +2148,7 @@ module RSpec::Matchers
|
|
2132
2148
|
# @param description [String] optional description to be used for this matcher.
|
2133
2149
|
#
|
2134
2150
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2135
|
-
def an_object_satisfying(*args, &block); end
|
2151
|
+
def an_object_satisfying(*args, **_arg1, &block); end
|
2136
2152
|
|
2137
2153
|
# Given true, false, or nil, will pass if actual value is true, false or
|
2138
2154
|
# nil (respectively). Given no args means the caller should satisfy an if
|
@@ -2211,7 +2227,7 @@ module RSpec::Matchers
|
|
2211
2227
|
# Passes if actual is falsey (false or nil)
|
2212
2228
|
#
|
2213
2229
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2214
|
-
def be_falsy(*args, &block); end
|
2230
|
+
def be_falsy(*args, **_arg1, &block); end
|
2215
2231
|
|
2216
2232
|
# Passes if actual.instance_of?(expected)
|
2217
2233
|
#
|
@@ -2418,7 +2434,7 @@ module RSpec::Matchers
|
|
2418
2434
|
# @param message [Symbol] the message to send the receiver
|
2419
2435
|
#
|
2420
2436
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2421
|
-
def changing(*args, &block); end
|
2437
|
+
def changing(*args, **_arg1, &block); end
|
2422
2438
|
|
2423
2439
|
# Passes if actual contains all of the expected regardless of order.
|
2424
2440
|
# This works for collections. Pass in multiple args and it will only
|
@@ -2446,7 +2462,7 @@ module RSpec::Matchers
|
|
2446
2462
|
# @see #match_array
|
2447
2463
|
#
|
2448
2464
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2449
|
-
def containing_exactly(*args, &block); end
|
2465
|
+
def containing_exactly(*args, **_arg1, &block); end
|
2450
2466
|
|
2451
2467
|
# Passes if actual covers expected. This works for
|
2452
2468
|
# Ranges. You can also pass in multiple args
|
@@ -2478,7 +2494,7 @@ module RSpec::Matchers
|
|
2478
2494
|
# expect(1..10).not_to cover(5) # fails
|
2479
2495
|
#
|
2480
2496
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2481
|
-
def covering(*args, &block); end
|
2497
|
+
def covering(*args, **_arg1, &block); end
|
2482
2498
|
|
2483
2499
|
# Matches if the actual value ends with the expected value(s). In the case
|
2484
2500
|
# of a string, matches against the last `expected.length` characters of the
|
@@ -2504,7 +2520,7 @@ module RSpec::Matchers
|
|
2504
2520
|
# expect([0, 2, 3, 4, 4]).to end_with 3, 4
|
2505
2521
|
#
|
2506
2522
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2507
|
-
def ending_with(*args, &block); end
|
2523
|
+
def ending_with(*args, **_arg1, &block); end
|
2508
2524
|
|
2509
2525
|
# Passes if <tt>actual == expected</tt>.
|
2510
2526
|
#
|
@@ -2528,7 +2544,7 @@ module RSpec::Matchers
|
|
2528
2544
|
# expect(5).not_to eq(3)
|
2529
2545
|
#
|
2530
2546
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2531
|
-
def eq_to(*args, &block); end
|
2547
|
+
def eq_to(*args, **_arg1, &block); end
|
2532
2548
|
|
2533
2549
|
# Passes if `actual.eql?(expected)`
|
2534
2550
|
#
|
@@ -2552,7 +2568,7 @@ module RSpec::Matchers
|
|
2552
2568
|
# expect(5).not_to eql(3)
|
2553
2569
|
#
|
2554
2570
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2555
|
-
def eql_to(*args, &block); end
|
2571
|
+
def eql_to(*args, **_arg1, &block); end
|
2556
2572
|
|
2557
2573
|
# Passes if <tt>actual.equal?(expected)</tt> (object identity).
|
2558
2574
|
#
|
@@ -2576,7 +2592,7 @@ module RSpec::Matchers
|
|
2576
2592
|
# expect("5").not_to equal("5") # Strings that look the same are not the same object
|
2577
2593
|
#
|
2578
2594
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2579
|
-
def equal_to(*args, &block); end
|
2595
|
+
def equal_to(*args, **_arg1, &block); end
|
2580
2596
|
|
2581
2597
|
# Passes if `actual.exist?` or `actual.exists?`
|
2582
2598
|
#
|
@@ -2592,7 +2608,7 @@ module RSpec::Matchers
|
|
2592
2608
|
# expect(File).to exist("path/to/file")
|
2593
2609
|
#
|
2594
2610
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2595
|
-
def existing(*args, &block); end
|
2611
|
+
def existing(*args, **_arg1, &block); end
|
2596
2612
|
|
2597
2613
|
# Supports `expect(actual).to matcher` syntax by wrapping `actual` in an
|
2598
2614
|
# `ExpectationTarget`.
|
@@ -2637,7 +2653,7 @@ module RSpec::Matchers
|
|
2637
2653
|
# @note It will fail if actual doesn't respond to any of the expected attributes.
|
2638
2654
|
#
|
2639
2655
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2640
|
-
def having_attributes(*args, &block); end
|
2656
|
+
def having_attributes(*args, **_arg1, &block); end
|
2641
2657
|
|
2642
2658
|
# Passes if actual includes expected. This works for
|
2643
2659
|
# collections and Strings. You can also pass in multiple args
|
@@ -2679,7 +2695,7 @@ module RSpec::Matchers
|
|
2679
2695
|
# expect(:a => 1, :b => 2).not_to include(:a => 2)
|
2680
2696
|
#
|
2681
2697
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2682
|
-
def including(*args, &block); end
|
2698
|
+
def including(*args, **_arg1, &block); end
|
2683
2699
|
|
2684
2700
|
# Given a `Regexp` or `String`, passes if `actual.match(pattern)`
|
2685
2701
|
# Given an arbitrary nested data structure (e.g. arrays and hashes),
|
@@ -2716,7 +2732,7 @@ module RSpec::Matchers
|
|
2716
2732
|
|
2717
2733
|
# An alternate form of `contain_exactly` that accepts
|
2718
2734
|
# the expected contents as a single array arg rather
|
2719
|
-
#
|
2735
|
+
# than splatted out as individual items.
|
2720
2736
|
#
|
2721
2737
|
# @example
|
2722
2738
|
# expect(results).to contain_exactly(1, 2)
|
@@ -2758,7 +2774,7 @@ module RSpec::Matchers
|
|
2758
2774
|
# `match` could not be used there), but is no longer needed in 3.x.
|
2759
2775
|
#
|
2760
2776
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2761
|
-
def match_regex(*args, &block); end
|
2777
|
+
def match_regex(*args, **_arg1, &block); end
|
2762
2778
|
|
2763
2779
|
# Given a `Regexp` or `String`, passes if `actual.match(pattern)`
|
2764
2780
|
# Given an arbitrary nested data structure (e.g. arrays and hashes),
|
@@ -2791,7 +2807,7 @@ module RSpec::Matchers
|
|
2791
2807
|
# `match` could not be used there), but is no longer needed in 3.x.
|
2792
2808
|
#
|
2793
2809
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2794
|
-
def matching(*args, &block); end
|
2810
|
+
def matching(*args, **_arg1, &block); end
|
2795
2811
|
|
2796
2812
|
# With no arg, passes if the block outputs `to_stdout` or `to_stderr`.
|
2797
2813
|
# With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`.
|
@@ -2884,7 +2900,7 @@ module RSpec::Matchers
|
|
2884
2900
|
# expect { do_something_risky }.not_to raise_error
|
2885
2901
|
#
|
2886
2902
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2887
|
-
def raising(*args, &block); end
|
2903
|
+
def raising(*args, **_arg1, &block); end
|
2888
2904
|
|
2889
2905
|
# Matches if the target object responds to all of the names
|
2890
2906
|
# provided. Names can be Strings or Symbols.
|
@@ -2902,7 +2918,7 @@ module RSpec::Matchers
|
|
2902
2918
|
# expect("string").to respond_to(:length)
|
2903
2919
|
#
|
2904
2920
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2905
|
-
def responding_to(*args, &block); end
|
2921
|
+
def responding_to(*args, **_arg1, &block); end
|
2906
2922
|
|
2907
2923
|
# Passes if the submitted block returns true. Yields target to the
|
2908
2924
|
# block.
|
@@ -2938,7 +2954,7 @@ module RSpec::Matchers
|
|
2938
2954
|
# @param description [String] optional description to be used for this matcher.
|
2939
2955
|
#
|
2940
2956
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2941
|
-
def satisfying(*args, &block); end
|
2957
|
+
def satisfying(*args, **_arg1, &block); end
|
2942
2958
|
|
2943
2959
|
# Matches if the actual value starts with the expected value(s). In the
|
2944
2960
|
# case of a string, matches against the first `expected.length` characters
|
@@ -2964,7 +2980,7 @@ module RSpec::Matchers
|
|
2964
2980
|
# expect([0, 2, 3, 4, 4]).to start_with 0, 1
|
2965
2981
|
#
|
2966
2982
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
2967
|
-
def starting_with(*args, &block); end
|
2983
|
+
def starting_with(*args, **_arg1, &block); end
|
2968
2984
|
|
2969
2985
|
# Given no argument, matches if a proc throws any Symbol.
|
2970
2986
|
#
|
@@ -3002,7 +3018,7 @@ module RSpec::Matchers
|
|
3002
3018
|
# expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit')
|
3003
3019
|
#
|
3004
3020
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3005
|
-
def throwing(*args, &block); end
|
3021
|
+
def throwing(*args, **_arg1, &block); end
|
3006
3022
|
|
3007
3023
|
# Passes if actual == expected +/- delta
|
3008
3024
|
#
|
@@ -3011,7 +3027,7 @@ module RSpec::Matchers
|
|
3011
3027
|
# expect(result).not_to be_within(0.5).of(3.0)
|
3012
3028
|
#
|
3013
3029
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3014
|
-
def within(*args, &block); end
|
3030
|
+
def within(*args, **_arg1, &block); end
|
3015
3031
|
|
3016
3032
|
# Passes if the method called in the expect block yields, regardless
|
3017
3033
|
# of whether or not arguments are yielded.
|
@@ -3095,7 +3111,7 @@ module RSpec::Matchers
|
|
3095
3111
|
# the method-under-test as a block.
|
3096
3112
|
#
|
3097
3113
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3098
|
-
def yielding_control(*args, &block); end
|
3114
|
+
def yielding_control(*args, **_arg1, &block); end
|
3099
3115
|
|
3100
3116
|
# Designed for use with methods that repeatedly yield (such as
|
3101
3117
|
# iterators). Passes if the method called in the expect block yields
|
@@ -3113,7 +3129,7 @@ module RSpec::Matchers
|
|
3113
3129
|
# the method-under-test as a block.
|
3114
3130
|
#
|
3115
3131
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3116
|
-
def yielding_successive_args(*args, &block); end
|
3132
|
+
def yielding_successive_args(*args, **_arg1, &block); end
|
3117
3133
|
|
3118
3134
|
# Given no arguments, matches if the method called in the expect
|
3119
3135
|
# block yields with arguments (regardless of what they are or how
|
@@ -3140,7 +3156,7 @@ module RSpec::Matchers
|
|
3140
3156
|
# multiple times.
|
3141
3157
|
#
|
3142
3158
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3143
|
-
def yielding_with_args(*args, &block); end
|
3159
|
+
def yielding_with_args(*args, **_arg1, &block); end
|
3144
3160
|
|
3145
3161
|
# Passes if the method called in the expect block yields with
|
3146
3162
|
# no arguments. Fails if it does not yield, or yields with arguments.
|
@@ -3155,7 +3171,7 @@ module RSpec::Matchers
|
|
3155
3171
|
# multiple times.
|
3156
3172
|
#
|
3157
3173
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#38
|
3158
|
-
def yielding_with_no_args(*args, &block); end
|
3174
|
+
def yielding_with_no_args(*args, **_arg1, &block); end
|
3159
3175
|
|
3160
3176
|
private
|
3161
3177
|
|
@@ -3304,7 +3320,7 @@ end
|
|
3304
3320
|
#
|
3305
3321
|
# @private
|
3306
3322
|
#
|
3307
|
-
# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#
|
3323
|
+
# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#64
|
3308
3324
|
class RSpec::Matchers::AliasedMatcherWithOperatorSupport < ::RSpec::Matchers::AliasedMatcher; end
|
3309
3325
|
|
3310
3326
|
# @private
|
@@ -3335,7 +3351,7 @@ class RSpec::Matchers::AliasedNegatedMatcher < ::RSpec::Matchers::AliasedMatcher
|
|
3335
3351
|
# by going through the effort of defining a negated matcher.
|
3336
3352
|
#
|
3337
3353
|
# However, if the override didn't actually change anything, then we
|
3338
|
-
# should return the opposite failure message instead -- the
|
3354
|
+
# should return the opposite failure message instead -- the overridden
|
3339
3355
|
# message is going to be confusing if we return it as-is, as it represents
|
3340
3356
|
# the non-negated failure message for a negated match (or vice versa).
|
3341
3357
|
#
|
@@ -3365,7 +3381,7 @@ module RSpec::Matchers::BuiltIn; end
|
|
3365
3381
|
#
|
3366
3382
|
# @api private
|
3367
3383
|
#
|
3368
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#
|
3384
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#7
|
3369
3385
|
class RSpec::Matchers::BuiltIn::All < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
3370
3386
|
# @api private
|
3371
3387
|
# @return [All] a new instance of All
|
@@ -3761,7 +3777,7 @@ end
|
|
3761
3777
|
#
|
3762
3778
|
# @api private
|
3763
3779
|
#
|
3764
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#
|
3780
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#7
|
3765
3781
|
class RSpec::Matchers::BuiltIn::BeAnInstanceOf < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
3766
3782
|
# @api private
|
3767
3783
|
# @return [String]
|
@@ -3905,7 +3921,7 @@ end
|
|
3905
3921
|
#
|
3906
3922
|
# @api private
|
3907
3923
|
#
|
3908
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#
|
3924
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#30
|
3909
3925
|
class RSpec::Matchers::BuiltIn::BeFalsey < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
3910
3926
|
# @api private
|
3911
3927
|
# @return [String]
|
@@ -3954,7 +3970,7 @@ end
|
|
3954
3970
|
#
|
3955
3971
|
# @api private
|
3956
3972
|
#
|
3957
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#
|
3973
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#53
|
3958
3974
|
class RSpec::Matchers::BuiltIn::BeNil < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
3959
3975
|
# @api private
|
3960
3976
|
# @return [String]
|
@@ -3981,7 +3997,7 @@ end
|
|
3981
3997
|
#
|
3982
3998
|
# @api private
|
3983
3999
|
#
|
3984
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
4000
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#137
|
3985
4001
|
class RSpec::Matchers::BuiltIn::BePredicate < ::RSpec::Matchers::BuiltIn::DynamicPredicate
|
3986
4002
|
private
|
3987
4003
|
|
@@ -4022,7 +4038,7 @@ RSpec::Matchers::BuiltIn::BePredicate::REGEX = T.let(T.unsafe(nil), Regexp)
|
|
4022
4038
|
#
|
4023
4039
|
# @api private
|
4024
4040
|
#
|
4025
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#
|
4041
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#7
|
4026
4042
|
class RSpec::Matchers::BuiltIn::BeTruthy < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
4027
4043
|
# @api private
|
4028
4044
|
# @return [String]
|
@@ -4155,7 +4171,7 @@ end
|
|
4155
4171
|
#
|
4156
4172
|
# @api private
|
4157
4173
|
#
|
4158
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
4174
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#7
|
4159
4175
|
class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
4160
4176
|
# @api private
|
4161
4177
|
# @return [Change] a new instance of Change
|
@@ -4473,7 +4489,7 @@ end
|
|
4473
4489
|
#
|
4474
4490
|
# @api private
|
4475
4491
|
#
|
4476
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4492
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#6
|
4477
4493
|
class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
4478
4494
|
# @api private
|
4479
4495
|
# @return [Compound] a new instance of Compound
|
@@ -4612,7 +4628,7 @@ end
|
|
4612
4628
|
#
|
4613
4629
|
# @api public
|
4614
4630
|
#
|
4615
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4631
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#242
|
4616
4632
|
class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound
|
4617
4633
|
# @api private
|
4618
4634
|
# @return [String]
|
@@ -4721,7 +4737,7 @@ end
|
|
4721
4737
|
#
|
4722
4738
|
# @api public
|
4723
4739
|
#
|
4724
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#
|
4740
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#269
|
4725
4741
|
class RSpec::Matchers::BuiltIn::Compound::Or < ::RSpec::Matchers::BuiltIn::Compound
|
4726
4742
|
# @api private
|
4727
4743
|
# @return [String]
|
@@ -4766,7 +4782,7 @@ end
|
|
4766
4782
|
#
|
4767
4783
|
# @api private
|
4768
4784
|
#
|
4769
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#
|
4785
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#8
|
4770
4786
|
class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
4771
4787
|
# @api private
|
4772
4788
|
# @return [String]
|
@@ -5364,7 +5380,7 @@ end
|
|
5364
5380
|
#
|
5365
5381
|
# @api private
|
5366
5382
|
#
|
5367
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#
|
5383
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#7
|
5368
5384
|
class RSpec::Matchers::BuiltIn::Eq < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
5369
5385
|
# @api private
|
5370
5386
|
# @return [String]
|
@@ -5403,7 +5419,7 @@ end
|
|
5403
5419
|
#
|
5404
5420
|
# @api private
|
5405
5421
|
#
|
5406
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#
|
5422
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#7
|
5407
5423
|
class RSpec::Matchers::BuiltIn::Eql < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
5408
5424
|
# @api private
|
5409
5425
|
# @return [Boolean]
|
@@ -5436,7 +5452,7 @@ end
|
|
5436
5452
|
#
|
5437
5453
|
# @api private
|
5438
5454
|
#
|
5439
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#
|
5455
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#7
|
5440
5456
|
class RSpec::Matchers::BuiltIn::Equal < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
5441
5457
|
# @api private
|
5442
5458
|
# @return [Boolean]
|
@@ -5538,7 +5554,7 @@ end
|
|
5538
5554
|
#
|
5539
5555
|
# @api private
|
5540
5556
|
#
|
5541
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#
|
5557
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#43
|
5542
5558
|
class RSpec::Matchers::BuiltIn::Exist::ExistenceTest < ::Struct
|
5543
5559
|
# @api private
|
5544
5560
|
# @return [Boolean]
|
@@ -5586,7 +5602,7 @@ end
|
|
5586
5602
|
#
|
5587
5603
|
# @api private
|
5588
5604
|
#
|
5589
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#
|
5605
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#125
|
5590
5606
|
class RSpec::Matchers::BuiltIn::Has < ::RSpec::Matchers::BuiltIn::DynamicPredicate
|
5591
5607
|
private
|
5592
5608
|
|
@@ -5606,7 +5622,7 @@ RSpec::Matchers::BuiltIn::Has::REGEX = T.let(T.unsafe(nil), Regexp)
|
|
5606
5622
|
#
|
5607
5623
|
# @api private
|
5608
5624
|
#
|
5609
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#
|
5625
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#7
|
5610
5626
|
class RSpec::Matchers::BuiltIn::HaveAttributes < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
5611
5627
|
# @api private
|
5612
5628
|
# @return [HaveAttributes] a new instance of HaveAttributes
|
@@ -6648,7 +6664,7 @@ end
|
|
6648
6664
|
#
|
6649
6665
|
# @api private
|
6650
6666
|
#
|
6651
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#
|
6667
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#181
|
6652
6668
|
class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
6653
6669
|
# @api private
|
6654
6670
|
# @return [SpecificValuesChange] a new instance of SpecificValuesChange
|
@@ -7195,7 +7211,7 @@ end
|
|
7195
7211
|
#
|
7196
7212
|
# @api private
|
7197
7213
|
#
|
7198
|
-
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#
|
7214
|
+
# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#149
|
7199
7215
|
class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
|
7200
7216
|
# @api private
|
7201
7217
|
# @private
|
@@ -7351,7 +7367,7 @@ module RSpec::Matchers::Composable
|
|
7351
7367
|
# source://rspec-expectations//lib/rspec/matchers/composable.rb#142
|
7352
7368
|
def should_enumerate?(item); end
|
7353
7369
|
|
7354
|
-
# Transforms the given data
|
7370
|
+
# Transforms the given data structure (typically a hash or array)
|
7355
7371
|
# into a new data structure that, when `#inspect` is called on it,
|
7356
7372
|
# will provide descriptions of any contained matchers rather than
|
7357
7373
|
# the normal `#inspect` output.
|
@@ -7423,7 +7439,7 @@ module RSpec::Matchers::Composable
|
|
7423
7439
|
# source://rspec-expectations//lib/rspec/matchers/composable.rb#142
|
7424
7440
|
def should_enumerate?(item); end
|
7425
7441
|
|
7426
|
-
# Transforms the given data
|
7442
|
+
# Transforms the given data structure (typically a hash or array)
|
7427
7443
|
# into a new data structure that, when `#inspect` is called on it,
|
7428
7444
|
# will provide descriptions of any contained matchers rather than
|
7429
7445
|
# the normal `#inspect` output.
|
@@ -7491,7 +7507,7 @@ end
|
|
7491
7507
|
#
|
7492
7508
|
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#6
|
7493
7509
|
module RSpec::Matchers::DSL
|
7494
|
-
# Defines a matcher alias. The returned matcher's `description` will be
|
7510
|
+
# Defines a matcher alias. The returned matcher's `description` will be overridden
|
7495
7511
|
# to reflect the phrasing of the new name, which will be used in failure messages
|
7496
7512
|
# when passed as an argument to another matcher in a composed matcher expression.
|
7497
7513
|
#
|
@@ -7511,7 +7527,7 @@ module RSpec::Matchers::DSL
|
|
7511
7527
|
# @param old_name [Symbol] the original name for the matcher
|
7512
7528
|
# @param options [Hash] options for the aliased matcher
|
7513
7529
|
# @see RSpec::Matchers
|
7514
|
-
# @yield [String] optional block that, when given, is used to define the
|
7530
|
+
# @yield [String] optional block that, when given, is used to define the overridden
|
7515
7531
|
# logic. The yielded arg is the original description or failure message. If no
|
7516
7532
|
# block is provided, a default override is used based on the old and new names.
|
7517
7533
|
#
|
@@ -7527,11 +7543,11 @@ module RSpec::Matchers::DSL
|
|
7527
7543
|
# When args are passed to your matcher, they will be yielded here,
|
7528
7544
|
# usually representing the expected value(s).
|
7529
7545
|
#
|
7530
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7546
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#73
|
7531
7547
|
def define(name, &declarations); end
|
7532
7548
|
|
7533
7549
|
# Defines a negated matcher. The returned matcher's `description` and `failure_message`
|
7534
|
-
# will be
|
7550
|
+
# will be overridden to reflect the phrasing of the new name, and the match logic will
|
7535
7551
|
# be based on the original matcher but negated.
|
7536
7552
|
#
|
7537
7553
|
# @example
|
@@ -7541,11 +7557,11 @@ module RSpec::Matchers::DSL
|
|
7541
7557
|
# @param negated_name [Symbol] the name for the negated matcher
|
7542
7558
|
# @param base_name [Symbol] the name of the original matcher that will be negated
|
7543
7559
|
# @see RSpec::Matchers
|
7544
|
-
# @yield [String] optional block that, when given, is used to define the
|
7560
|
+
# @yield [String] optional block that, when given, is used to define the overridden
|
7545
7561
|
# logic. The yielded arg is the original description or failure message. If no
|
7546
7562
|
# block is provided, a default override is used based on the old and new names.
|
7547
7563
|
#
|
7548
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7564
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#61
|
7549
7565
|
def define_negated_matcher(negated_name, base_name, &description_override); end
|
7550
7566
|
|
7551
7567
|
# Defines a custom matcher.
|
@@ -7557,14 +7573,14 @@ module RSpec::Matchers::DSL
|
|
7557
7573
|
# When args are passed to your matcher, they will be yielded here,
|
7558
7574
|
# usually representing the expected value(s).
|
7559
7575
|
#
|
7560
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7576
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#73
|
7561
7577
|
def matcher(name, &declarations); end
|
7562
7578
|
|
7563
7579
|
private
|
7564
7580
|
|
7565
7581
|
# :nocov:
|
7566
7582
|
#
|
7567
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7583
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#84
|
7568
7584
|
def warn_about_block_args(name, declarations); end
|
7569
7585
|
end
|
7570
7586
|
|
@@ -7573,13 +7589,13 @@ end
|
|
7573
7589
|
# override any of these using the {RSpec::Matchers::DSL::Macros Macros} methods
|
7574
7590
|
# from within an `RSpec::Matchers.define` block.
|
7575
7591
|
#
|
7576
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7592
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#385
|
7577
7593
|
module RSpec::Matchers::DSL::DefaultImplementations
|
7578
7594
|
include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
7579
7595
|
|
7580
7596
|
# The default description.
|
7581
7597
|
#
|
7582
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7598
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#395
|
7583
7599
|
def description; end
|
7584
7600
|
|
7585
7601
|
# Used internally by objects returns by `should` and `should_not`.
|
@@ -7587,14 +7603,14 @@ module RSpec::Matchers::DSL::DefaultImplementations
|
|
7587
7603
|
# @api private
|
7588
7604
|
# @return [Boolean]
|
7589
7605
|
#
|
7590
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7606
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#390
|
7591
7607
|
def diffable?; end
|
7592
7608
|
|
7593
7609
|
# Most matchers do not expect call stack jumps.
|
7594
7610
|
#
|
7595
7611
|
# @return [Boolean]
|
7596
7612
|
#
|
7597
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7613
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#412
|
7598
7614
|
def expects_call_stack_jump?; end
|
7599
7615
|
|
7600
7616
|
# Matchers do not support block expectations by default. You
|
@@ -7602,24 +7618,24 @@ module RSpec::Matchers::DSL::DefaultImplementations
|
|
7602
7618
|
#
|
7603
7619
|
# @return [Boolean]
|
7604
7620
|
#
|
7605
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7621
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#403
|
7606
7622
|
def supports_block_expectations?; end
|
7607
7623
|
|
7608
7624
|
# @return [Boolean]
|
7609
7625
|
#
|
7610
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7626
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#407
|
7611
7627
|
def supports_value_expectations?; end
|
7612
7628
|
|
7613
7629
|
private
|
7614
7630
|
|
7615
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7631
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#418
|
7616
7632
|
def chained_method_clause_sentences; end
|
7617
7633
|
end
|
7618
7634
|
|
7619
7635
|
# Contains the methods that are available from within the
|
7620
7636
|
# `RSpec::Matchers.define` DSL for creating custom matchers.
|
7621
7637
|
#
|
7622
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7638
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#104
|
7623
7639
|
module RSpec::Matchers::DSL::Macros
|
7624
7640
|
# Convenience for defining methods on this matcher to create a fluent
|
7625
7641
|
# interface. The trick about fluent interfaces is that each method must
|
@@ -7649,7 +7665,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7649
7665
|
#
|
7650
7666
|
# expect(minor).to have_errors_on(:age).with("Not old enough to participate")
|
7651
7667
|
#
|
7652
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7668
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#298
|
7653
7669
|
def chain(method_name, *attr_names, &definition); end
|
7654
7670
|
|
7655
7671
|
# Customize the description to use for one-liners. Only use this when
|
@@ -7666,16 +7682,16 @@ module RSpec::Matchers::DSL::Macros
|
|
7666
7682
|
# end
|
7667
7683
|
# @yield [Object] actual the actual object (i.e. the value wrapped by `expect`)
|
7668
7684
|
#
|
7669
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7685
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#253
|
7670
7686
|
def description(&definition); end
|
7671
7687
|
|
7672
7688
|
# Tells the matcher to diff the actual and expected values in the failure
|
7673
7689
|
# message.
|
7674
7690
|
#
|
7675
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7691
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#259
|
7676
7692
|
def diffable; end
|
7677
7693
|
|
7678
|
-
# Customizes the failure
|
7694
|
+
# Customizes the failure message to use when this matcher is
|
7679
7695
|
# asked to positively match. Only use this when the message
|
7680
7696
|
# generated by default doesn't suit your needs.
|
7681
7697
|
#
|
@@ -7690,10 +7706,10 @@ module RSpec::Matchers::DSL::Macros
|
|
7690
7706
|
# end
|
7691
7707
|
# @yield [Object] actual the actual object (i.e. the value wrapped by `expect`)
|
7692
7708
|
#
|
7693
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7709
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#216
|
7694
7710
|
def failure_message(&definition); end
|
7695
7711
|
|
7696
|
-
# Customize the failure
|
7712
|
+
# Customize the failure message to use when this matcher is asked
|
7697
7713
|
# to negatively match. Only use this when the message generated by
|
7698
7714
|
# default doesn't suit your needs.
|
7699
7715
|
#
|
@@ -7708,7 +7724,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7708
7724
|
# end
|
7709
7725
|
# @yield [Object] actual the actual object (i.e. the value wrapped by `expect`)
|
7710
7726
|
#
|
7711
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7727
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#235
|
7712
7728
|
def failure_message_when_negated(&definition); end
|
7713
7729
|
|
7714
7730
|
# Stores the block that is used to determine whether this matcher passes
|
@@ -7737,7 +7753,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7737
7753
|
# @param options [Hash] for defining the behavior of the match block.
|
7738
7754
|
# @yield [Object] actual the actual value (i.e. the value wrapped by `expect`)
|
7739
7755
|
#
|
7740
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7756
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#131
|
7741
7757
|
def match(options = T.unsafe(nil), &match_block); end
|
7742
7758
|
|
7743
7759
|
# Use this instead of `match` when the block will raise an exception
|
@@ -7754,7 +7770,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7754
7770
|
# expect(email_validator).to accept_as_valid("person@company.com")
|
7755
7771
|
# @yield [Object] actual the actual object (i.e. the value wrapped by `expect`)
|
7756
7772
|
#
|
7757
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7773
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#188
|
7758
7774
|
def match_unless_raises(expected_exception = T.unsafe(nil), &match_block); end
|
7759
7775
|
|
7760
7776
|
# Use this to define the block for a negative expectation (`expect(...).not_to`)
|
@@ -7770,7 +7786,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7770
7786
|
# @param options [Hash] for defining the behavior of the match block.
|
7771
7787
|
# @yield [Object] actual the actual value (i.e. the value wrapped by `expect`)
|
7772
7788
|
#
|
7773
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7789
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#160
|
7774
7790
|
def match_when_negated(options = T.unsafe(nil), &match_block); end
|
7775
7791
|
|
7776
7792
|
# Declares that the matcher can be used in a block expectation.
|
@@ -7778,12 +7794,12 @@ module RSpec::Matchers::DSL::Macros
|
|
7778
7794
|
# expectation without declaring this.
|
7779
7795
|
# (e.g. `expect { do_something }.to matcher`).
|
7780
7796
|
#
|
7781
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7797
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#267
|
7782
7798
|
def supports_block_expectations; end
|
7783
7799
|
|
7784
7800
|
private
|
7785
7801
|
|
7786
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7802
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#312
|
7787
7803
|
def assign_attributes(attr_names); end
|
7788
7804
|
|
7789
7805
|
# Does the following:
|
@@ -7791,7 +7807,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7791
7807
|
# - Defines the named method using a user-provided block
|
7792
7808
|
# in @user_method_defs, which is included as an ancestor
|
7793
7809
|
# in the singleton class in which we eval the `define` block.
|
7794
|
-
# - Defines an
|
7810
|
+
# - Defines an overridden definition for the same method
|
7795
7811
|
# usign the provided `our_def` block.
|
7796
7812
|
# - Provides a default `our_def` block for the common case
|
7797
7813
|
# of needing to call the user's definition with `@actual`
|
@@ -7804,7 +7820,7 @@ module RSpec::Matchers::DSL::Macros
|
|
7804
7820
|
# (e.g. assigning `@actual`, rescueing errors, etc) and
|
7805
7821
|
# can `super` to the user's definition.
|
7806
7822
|
#
|
7807
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7823
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#346
|
7808
7824
|
def define_user_override(method_name, user_def, &our_def); end
|
7809
7825
|
end
|
7810
7826
|
|
@@ -7812,32 +7828,32 @@ end
|
|
7812
7828
|
#
|
7813
7829
|
# @deprecated Use the methods from {Macros} instead.
|
7814
7830
|
#
|
7815
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7831
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#354
|
7816
7832
|
module RSpec::Matchers::DSL::Macros::Deprecated
|
7817
7833
|
# @deprecated Use {Macros#failure_message} instead.
|
7818
7834
|
#
|
7819
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7835
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#368
|
7820
7836
|
def failure_message_for_should(&definition); end
|
7821
7837
|
|
7822
7838
|
# @deprecated Use {Macros#failure_message_when_negated} instead.
|
7823
7839
|
#
|
7824
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7840
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#374
|
7825
7841
|
def failure_message_for_should_not(&definition); end
|
7826
7842
|
|
7827
7843
|
# @deprecated Use {Macros#match} instead.
|
7828
7844
|
#
|
7829
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7845
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#356
|
7830
7846
|
def match_for_should(&definition); end
|
7831
7847
|
|
7832
7848
|
# @deprecated Use {Macros#match_when_negated} instead.
|
7833
7849
|
#
|
7834
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7850
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#362
|
7835
7851
|
def match_for_should_not(&definition); end
|
7836
7852
|
end
|
7837
7853
|
|
7838
7854
|
# @private
|
7839
7855
|
#
|
7840
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7856
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#146
|
7841
7857
|
RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
7842
7858
|
|
7843
7859
|
# The class used for custom matchers. The block passed to
|
@@ -7845,7 +7861,7 @@ RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
|
7845
7861
|
# of the singleton class of an instance, and will have the
|
7846
7862
|
# {RSpec::Matchers::DSL::Macros Macros} methods available.
|
7847
7863
|
#
|
7848
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7864
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#433
|
7849
7865
|
class RSpec::Matchers::DSL::Matcher
|
7850
7866
|
include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
7851
7867
|
include ::RSpec::Matchers::DSL::DefaultImplementations
|
@@ -7857,18 +7873,18 @@ class RSpec::Matchers::DSL::Matcher
|
|
7857
7873
|
# @api private
|
7858
7874
|
# @return [Matcher] a new instance of Matcher
|
7859
7875
|
#
|
7860
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7876
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#462
|
7861
7877
|
def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end
|
7862
7878
|
|
7863
7879
|
# Exposes the value being matched against -- generally the object
|
7864
7880
|
# object wrapped by `expect`.
|
7865
7881
|
#
|
7866
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7882
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#449
|
7867
7883
|
def actual; end
|
7868
7884
|
|
7869
7885
|
# The block parameter used in the expectation
|
7870
7886
|
#
|
7871
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7887
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#456
|
7872
7888
|
def block_arg; end
|
7873
7889
|
|
7874
7890
|
# Provides the expected value. This will return an array if
|
@@ -7877,7 +7893,7 @@ class RSpec::Matchers::DSL::Matcher
|
|
7877
7893
|
#
|
7878
7894
|
# @see #expected_as_array
|
7879
7895
|
#
|
7880
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7896
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#482
|
7881
7897
|
def expected; end
|
7882
7898
|
|
7883
7899
|
# Returns the expected value as an an array. This exists primarily
|
@@ -7886,30 +7902,30 @@ class RSpec::Matchers::DSL::Matcher
|
|
7886
7902
|
#
|
7887
7903
|
# @see #expected
|
7888
7904
|
#
|
7889
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7905
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#494
|
7890
7906
|
def expected_as_array; end
|
7891
7907
|
|
7892
7908
|
# Adds the name (rather than a cryptic hex number)
|
7893
7909
|
# so we can identify an instance of
|
7894
7910
|
# the matcher in error messages (e.g. for `NoMethodError`)
|
7895
7911
|
#
|
7896
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7912
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#499
|
7897
7913
|
def inspect; end
|
7898
7914
|
|
7899
7915
|
# The name of the matcher.
|
7900
7916
|
#
|
7901
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7917
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#459
|
7902
7918
|
def name; end
|
7903
7919
|
|
7904
7920
|
# Exposes the exception raised during the matching by `match_unless_raises`.
|
7905
7921
|
# Could be useful to extract details for a failure message.
|
7906
7922
|
#
|
7907
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7923
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#453
|
7908
7924
|
def rescued_exception; end
|
7909
7925
|
|
7910
7926
|
private
|
7911
7927
|
|
7912
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7928
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#522
|
7913
7929
|
def actual_arg_for(block); end
|
7914
7930
|
|
7915
7931
|
# Takes care of forwarding unhandled messages to the
|
@@ -7919,7 +7935,7 @@ class RSpec::Matchers::DSL::Matcher
|
|
7919
7935
|
# Rails' test helper methods, but it's also a useful
|
7920
7936
|
# feature in its own right.
|
7921
7937
|
#
|
7922
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7938
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#532
|
7923
7939
|
def method_missing(method, *args, **_arg2, &block); end
|
7924
7940
|
|
7925
7941
|
# Indicates that this matcher responds to messages
|
@@ -7928,7 +7944,7 @@ class RSpec::Matchers::DSL::Matcher
|
|
7928
7944
|
#
|
7929
7945
|
# @return [Boolean]
|
7930
7946
|
#
|
7931
|
-
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#
|
7947
|
+
# source://rspec-expectations//lib/rspec/matchers/dsl.rb#507
|
7932
7948
|
def respond_to_missing?(method, include_private = T.unsafe(nil)); end
|
7933
7949
|
end
|
7934
7950
|
|
@@ -8086,5 +8102,5 @@ class RSpec::Matchers::MatcherDelegator
|
|
8086
8102
|
def respond_to_missing?(name, include_all = T.unsafe(nil)); end
|
8087
8103
|
end
|
8088
8104
|
|
8089
|
-
# source://rspec-core/3.12.
|
8105
|
+
# source://rspec-core/3.12.1/lib/rspec/core/shared_context.rb#54
|
8090
8106
|
RSpec::SharedContext = RSpec::Core::SharedContext
|