Commit graph

87 commits

Author SHA1 Message Date
Michael Miller
1507a447c8 Update specs to use new source arguments
Used `new_partial` where the underlying partial didn't matter for the
test.
2019-02-14 17:04:59 -07:00
Michael Miller
1f2f7f2214 Add spec for have_value matcher 2019-02-05 19:37:41 -07:00
Michael Miller
da9e653a89 Add spec for have_key matcher 2019-02-05 19:26:46 -07:00
Michael Miller
8a09ddac04 Add spec for predicate matcher 2019-02-05 10:36:59 -07:00
Michael Miller
5da222d7a0 Whitespace 2019-02-04 16:27:40 -07:00
Michael Miller
71427e4f6b Use spy to test that matchers use === operator 2019-02-04 16:26:53 -07:00
Michael Miller
e42e5b30bb Fix test 2019-02-04 16:20:35 -07:00
Michael Miller
75c4bcad54 Add spec for have_attributes matcher 2019-02-04 16:19:39 -07:00
Michael Miller
ade4af0153 Add tests for multiple arguments 2019-02-01 20:44:25 -07:00
Michael Miller
239779135f Fix have matcher tests for multiple arguments 2019-02-01 20:29:13 -07:00
Michael Miller
4043a76a07 Add tests for multiple arguments 2019-02-01 19:56:46 -07:00
Michael Miller
acea12cafb Fix contain matcher tests for multiple arguments 2019-02-01 19:45:30 -07:00
Michael Miller
196b4d97a5 Add spec for have matcher 2019-02-01 16:43:18 -07:00
Michael Miller
2a91191a6b Add spec for contain matcher 2019-01-31 23:12:48 -07:00
Michael Miller
5f9c0385ad Check for mentions of first and last 2019-01-31 22:13:50 -07:00
Michael Miller
a91758b3f3 Add spec for end_with matcher 2019-01-31 22:11:38 -07:00
Michael Miller
e6e4f28a4c Add spec for start_with matcher 2019-01-31 19:36:35 -07:00
Michael Miller
651127f2d4 Add spec for empty matcher
Mark question matchers as done (for now).
More may be added later if they're common.
2019-01-26 17:09:24 -07:00
Michael Miller
aa94ec0e33 Sub-types should be not match 2019-01-26 16:44:46 -07:00
Michael Miller
3bfaa07d4f Add spec for nil matcher 2019-01-26 16:41:21 -07:00
Michael Miller
c3d7aef7a9 Add a couple of type tests 2019-01-26 16:34:58 -07:00
Michael Miller
12864492b7 Add spec for range modifier methods 2019-01-25 13:52:41 -07:00
Michael Miller
ac08806010 Add spec for RangeMatcher 2019-01-25 13:12:34 -07:00
Michael Miller
c31557e8ff Move everything in BeComparison to TruthyMatcher
This is to match RSpec's ability to use "be" by itself.
For instance: `expect(foo).to be`
2019-01-23 22:10:03 -07:00
Michael Miller
2758ba7643 Add spec for BeComparison 2019-01-23 21:36:52 -07:00
Michael Miller
06ee53a7b6 Add spec for GreaterThanEqualMatcher 2019-01-23 21:10:17 -07:00
Michael Miller
e3d9b55ae7 Add spec for GreaterThanMatcher 2019-01-23 21:08:52 -07:00
Michael Miller
99991de2da Add spec for LessThanEqualMatcher 2019-01-23 21:05:50 -07:00
Michael Miller
06bb969061 Add spec for LessThanMatcher 2019-01-23 21:03:44 -07:00
Michael Miller
d86b9dad11 Add spec for InequalityMatcher 2019-01-23 21:02:44 -07:00
Michael Miller
95b0563f73 Add spec for TruthyMatcher 2019-01-23 16:06:18 -07:00
Michael Miller
a32b511e0b Add spec for match (regex) matcher 2019-01-19 14:49:13 -07:00
Michael Miller
19da933c2f Add spec for be_a matcher 2019-01-19 14:29:07 -07:00
Michael Miller
f2569ea3a0 Add spec for be matcher 2019-01-19 13:50:57 -07:00
Michael Miller
15ac60b17b Remove unecessary #to_s calls 2018-10-19 11:01:22 -06:00
Michael Miller
7f4690b042 Secondary initializer for missing label
Label is set to actual/expected stringified value if omitted.
2018-10-18 21:52:00 -06:00
Michael Miller
bc66016c42 Add specs for equality matcher 2018-10-18 13:46:12 -06:00