Commit graph

488 commits

Author SHA1 Message Date
Michael Miller
8c5760e8dd Rename methods for clarity 2019-02-12 23:18:04 -07:00
Michael Miller
6f08101828 Add docs to Report class 2019-02-12 23:13:03 -07:00
Michael Miller
6151912fa6 Add spec for test suite 2019-02-12 22:33:48 -07:00
Michael Miller
493e30acee Remove elapsed time from pending results 2019-02-12 16:36:06 -07:00
Michael Miller
577877e067 Add spec for runner
Added a spy for detecting when formatter methods are called.
2019-02-12 16:10:14 -07:00
Michael Miller
142011a763 Add a silent formatter 2019-02-12 13:48:51 -07:00
Michael Miller
ff7fcc6a68 Utility method for getting default config 2019-02-12 13:45:48 -07:00
Michael Miller
50bc1af816 Method for creating groups of spy examples 2019-02-12 13:45:19 -07:00
Michael Miller
5af9799df0 Pass test suite instance to #start_suite 2019-02-12 12:58:54 -07:00
Michael Miller
56c5d7c888 Add docs 2019-02-12 12:55:32 -07:00
Michael Miller
eef1062775 Rename TestSuiteResults to Report 2019-02-11 13:50:57 -07:00
Michael Miller
3d67c45a22 Add docs 2019-02-10 23:05:16 -07:00
Michael Miller
55b655e90a Update naming and fresh variables 2019-02-10 01:20:30 -07:00
Michael Miller
fc3a7285a0 Rename "wrapper" to test code/instance 2019-02-10 01:03:32 -07:00
Michael Miller
1f2f7f2214 Add spec for have_value matcher 2019-02-05 19:37:41 -07:00
Michael Miller
e14e86a5f3 Add have_value matcher 2019-02-05 19:37:25 -07:00
Michael Miller
7698724241 Update old naming to new matcher name 2019-02-05 19:30:44 -07:00
Michael Miller
da9e653a89 Add spec for have_key matcher 2019-02-05 19:26:46 -07:00
Michael Miller
c6b4e22666 Add have_key matcher 2019-02-05 12:47:50 -07:00
Michael Miller
8a09ddac04 Add spec for predicate matcher 2019-02-05 10:36:59 -07:00
Michael Miller
6bfd15b7f9 Parameterless initializer that generates the label 2019-02-05 10:36:37 -07:00
Michael Miller
0e0b8f4ae2 Base PredicateMatcher off of Matcher
No need to store an expected value.
Matcher's initializer must be public.
2019-02-05 10:14:33 -07:00
Michael Miller
89208b8ed1 Implement predicate matcher
Took a trick I learned from `have_attributes` and applied it here.
2019-02-04 22:52:09 -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
1c9cb41fa2 Add have_attributes matcher
This one is kind of magical.
2019-02-01 22:24:06 -07:00
Michael Miller
c504c945a7 Remove redundant matchers 2019-02-01 21:37:48 -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
0c4ffdf587 Allow have matcher to take multiple values 2019-02-01 20:27:51 -07:00
Michael Miller
6d90966f93 Update doc 2019-02-01 20:17:46 -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
85b4e6894b Allow contain matcher to take multiple values 2019-02-01 19:43:42 -07:00
Michael Miller
7c8239e55b The respond_to matcher doesn't seem possible
Might be possible if a matcher was dynamically generated by a macro, 
but... ¯\_(ツ)_/¯
2019-02-01 19:21:31 -07:00
Michael Miller
5389a39231 Add DSL for be_close matcher 2019-02-01 19:10:28 -07:00
Michael Miller
196b4d97a5 Add spec for have matcher 2019-02-01 16:43:18 -07:00
Michael Miller
4ea439622d Implement have matcher
This is very similar to the `contain` matcher.
I would have used `include` for the matcher name, but it is a keyword
that can't be used in this syntax.
2019-02-01 16:25:45 -07:00
Michael Miller
50c2d4fbed Revise list of matchers 2019-02-01 15:40:43 -07:00
Michael Miller
2a91191a6b Add spec for contain matcher 2019-01-31 23:12:48 -07:00
Michael Miller
f4ac7a3405 Add contain matcher 2019-01-31 23:06:00 -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
d0711f940d Add end_with matcher 2019-01-31 22:05:27 -07:00
Michael Miller
e6e4f28a4c Add spec for start_with matcher 2019-01-31 19:36:35 -07:00
Michael Miller
0a310cb243 Add start_with matcher 2019-01-31 16:43:43 -07:00
Michael Miller
5c219195e1 Formatting 2019-01-31 13:55:36 -07:00
Michael Miller
e2779822b5 Remove unecessary type restrictions 2019-01-31 13:52:41 -07:00