shard-spectator/src/spectator/matchers
Michael Miller f11b548f4e Mimic RSpec behavior of match matcher
The code:
expect(/foo/).to match("food")
would normally evaluate:
"food" === /foo/
which is false.
However, in RSpec, this expectation is true.
2020-01-06 23:01:45 -07:00
..
all_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
array_matcher.cr Change array matcher to allow any order 2020-01-05 11:42:39 -07:00
attributes_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
case_matcher.cr Mimic RSpec behavior of match matcher 2020-01-06 23:01:45 -07:00
change_exact_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
change_from_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
change_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
change_relative_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
change_to_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
collection_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
contain_matcher.cr Fix negative match case for contain/cover matcher 2020-01-05 23:01:25 -07:00
empty_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
end_with_matcher.cr Fix negation expectation text 2020-01-06 22:11:36 -07:00
equality_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
exception_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
failed_match_data.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
greater_than_equal_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
greater_than_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
have_key_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
have_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
have_predicate_matcher.cr Remove unecessary members provided by ValueMatcher 2020-01-04 09:33:14 -07:00
have_value_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
inequality_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
instance_matcher.cr Add instance_of matcher to check exact type 2020-01-04 12:46:08 -07:00
less_than_equal_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
less_than_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
match_data.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
matcher.cr Add docs and some more type annotations 2019-08-09 17:26:53 -06:00
nil_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
predicate_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
range_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
receive_matcher.cr Negation for receive matchers 2019-11-17 10:32:37 -07:00
receive_type_matcher.cr Negation for receive matchers 2019-11-17 10:32:37 -07:00
reference_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
respond_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
size_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
size_of_matcher.cr Revert "Coerce operations in match? to booleans" 2019-11-16 15:15:53 -07:00
standard_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
start_with_matcher.cr Fix negation expectation text 2020-01-06 22:11:36 -07:00
successful_match_data.cr Add return type annotations 2019-09-23 20:32:21 -06:00
truthy_matcher.cr Fix truthy values not being strings 2019-11-16 09:01:03 -07:00
type_matcher.cr Fix typo with be_a matcher 2020-01-04 12:45:49 -07:00
unordered_array_matcher.cr Store matcher description in MatchData 2020-01-02 19:16:33 -07:00
value_matcher.cr Add docs and some more type annotations 2019-08-09 17:26:53 -06:00