Commit graph

102 commits

Author SHA1 Message Date
Michael Miller
99ced17516
Handle undefined methods with have_attributes matcher
Instead of producing a compilation error on missing/undefind methods, 
substitute in an "undefined" value.
This shows better output to the user.
2021-09-26 12:50:17 -06:00
Michael Miller
83fa0499d3
Fix https://github.com/icy-arctic-fox/spectator/issues/34 2021-09-22 18:01:15 -06:00
Michael Miller
e0e442d394
Fix release date of v0.10.0 2021-09-16 09:10:12 -06:00
Michael Miller
53bbd24617
Release 0.10.1 2021-09-16 09:04:44 -06:00
Michael Miller
a51640105c
Re-add pre- and post-condition hooks
Accidentally removed in hook refactoring.
Addresses https://gitlab.com/arctic-fox/spectator/-/issues/62
2021-09-16 09:01:51 -06:00
Michael Miller
632845574f
Stringify tags
Addresses https://gitlab.com/arctic-fox/spectator/-/issues/61
2021-09-11 16:05:20 -06:00
Michael Miller
f608081b02
Release 0.10.0 2021-08-19 14:06:07 -06:00
Michael Miller
5d90a99d8e
Update README and CHANGELOG with recent changes
Attempt to clarify confusion around 
https://github.com/icy-arctic-fox/spectator/issues/22
2021-08-19 13:35:15 -06:00
Michael Miller
21d14bd814
Add f-prefix variants of groups and examples
For instance: `fit` for `it "...", :focus`
2021-08-18 13:55:21 -06:00
Michael Miller
ffb99a21d5
Update changelog to mention group matching 2021-08-17 21:44:15 -06:00
Michael Miller
0f7a9ed9e8
Remove append and prepend variants of hook definition methods
RSpec defines these as applying to a scope (example, context, suite) as 
opposed to example group.
Mimicing this is currently not possible in Spectator and would require a 
substantial restructure of how hooks are handled.
This may be implemented in the future.
2021-08-08 11:50:30 -06:00
Michael Miller
b9f0a31a4a
Overhaul hooks
Mostly cleanup and make managing hooks simpler, hopefully.
Tests indicate this configuration matches hook execution order of RSpec.
2021-08-07 21:45:49 -06:00
Michael Miller
4c125d98d4
Implement aggregate_failures 2021-07-31 11:56:53 -06:00
Michael Miller
9a97596b84
Allow named arguments in provided block 2021-07-31 10:15:16 -06:00
Michael Miller
e8413db33f
Support custom messages for failed expectations
Fixes https://gitlab.com/arctic-fox/spectator/-/issues/28
2021-07-17 17:42:25 -06:00
Michael Miller
2b37d34f26
Reference issues 2021-07-17 16:55:27 -06:00
Michael Miller
9c7f39ba45
Update references to existing issues 2021-07-17 16:03:01 -06:00
Michael Miller
937b084f66
Support defining hooks in configuration block 2021-07-17 15:20:58 -06:00
Michael Miller
a810eef16c
Add before_suite and after_suite 2021-07-17 14:19:16 -06:00
Michael Miller
571bc7d8a5
Reuse iterative example group macro code
Add support for x prefix to skip sample and random_sample groups.
2021-07-17 13:25:38 -06:00
Michael Miller
9d72d26630
Handle sample count 2021-07-17 12:49:11 -06:00
Michael Miller
6c55301d0b
Merge remote-tracking branch 'origin/master' into release/0.10 2021-07-11 00:16:25 -06:00
Michael Miller
01672fc073
Bump version to 0.9.40 2021-07-10 23:16:05 -06:00
Michael Miller
6a01ab3531
Merge master into release/0.10 2021-07-05 11:32:45 -06:00
Michael Miller
78de2be994
Bump version to 0.9.39 2021-07-02 21:59:16 -06:00
Michael Miller
f728ab6ad7
Add test case handling NoReturn stub and top-level methods (exit)
Fixes https://github.com/icy-arctic-fox/spectator/issues/29
2021-07-02 21:55:42 -06:00
Michael Miller
a0537484f4
Allow creation of doubles without a definition
Utilizes anonymous doubles to implement this.
Fixes https://github.com/icy-arctic-fox/spectator/issues/30
2021-07-02 19:18:14 -06:00
Michael Miller
e3f6fb3c7c
Add no_args support for stubs
Fixes https://github.com/icy-arctic-fox/spectator/issues/28
2021-07-02 18:43:39 -06:00
Michael Miller
8d32984eba
Mark issue with scope of types as resolved
https://github.com/icy-arctic-fox/spectator/issues/31 appears to be 
fixed in v0.10.
2021-07-02 18:11:40 -06:00
Michael Miller
704c28e822
Reimplement given as provided and deprecate
The behavior is slightly different now.
Nested example blocks aren't allowed in `provided`.
The block produces one example, not multiple.
2021-06-12 16:23:38 -06:00
Michael Miller
4f2df78c34
Deprecate current behavior of pending blocks 2021-06-11 18:55:56 -06:00
Michael Miller
420f69f56b
Add pending changes to changelog 2021-06-11 18:45:05 -06:00
Michael Miller
b738b6b3ff
Add item regarding reporting and formatting 2021-06-03 22:04:11 -06:00
Michael Miller
39c95397fd
Merge branch 'master' into release/0.10 2021-05-29 16:56:57 -06:00
Michael Miller
92f758084d
Bump version to 0.9.38 2021-05-27 15:20:11 -06:00
Michael Miller
a3305a9273
Merge branch 'master' into release/0.10 2021-05-19 20:15:36 -06:00
Michael Miller
55398709de
Bump version to 0.9.37 2021-05-19 19:51:08 -06:00
Michael Miller
f24d634ccb
Merge branch 'release/0.10' into specs 2021-04-26 17:19:25 -06:00
Michael Miller
29594eefab
Merge branch 'master' into release/0.10 2021-04-26 11:19:08 -06:00
Michael Miller
18fb2d3879
Bump version to 0.9.36 2021-04-25 23:39:26 -06:00
Michael Miller
25638d766e
Bump version to 0.9.35 2021-04-18 18:08:08 -06:00
Michael Miller
d612657b15
Merge branch 'release/0.10' into specs 2021-03-31 15:28:16 -06:00
Michael Miller
3d702f9bc6
Merge branch 'master' into release/0.10 2021-03-31 15:19:30 -06:00
Michael Miller
347e07e104
Update CHANGELOG 2021-03-31 15:07:00 -06:00
Michael Miller
08451df643
Add matcher to check compiled type of values 2021-02-12 18:33:50 -07:00
Michael Miller
3cd569e639
Prevent using reserved keywords in let and subject 2021-02-10 16:58:17 -07:00
Michael Miller
969a1f7755
Merge branch 'master' into release/0.10 2021-02-09 18:16:48 -07:00
Michael Miller
e0c4d2ac3e
Bump version to 0.9.32 2021-02-03 10:08:46 -07:00
Michael Miller
3ae83f8b3d
Note about removing one-liner braceless syntax 2021-01-30 21:29:11 -07:00
Michael Miller
a5fcb96378
Support for tags 2021-01-30 12:10:09 -07:00
Michael Miller
8252d333fa
Update changelog with current known changes 2021-01-23 19:42:14 -07:00
Michael Miller
b583e88422
Add changelog 2021-01-23 19:17:56 -07:00