Michael Miller
1998edbbb2
Release v0.11.3
2022-09-03 16:48:15 -06:00
Michael Miller
0505f210f9
Update CHANGELOG
2022-08-29 20:56:26 -06:00
Michael Miller
d10531430c
Bump v0.11.2
2022-08-07 15:23:05 -06:00
Michael Miller
b5c61f9003
Change -e
to use partial instead of exact match
...
Fixes https://gitlab.com/arctic-fox/spectator/-/issues/71
Fixes https://github.com/icy-arctic-fox/spectator/issues/45
2022-08-07 15:20:17 -06:00
Michael Miller
17a3ca3ac7
Fix https://gitlab.com/arctic-fox/spectator/-/issues/77
2022-08-07 14:58:09 -06:00
Michael Miller
02027cda53
Bump version 0.11.1
2022-07-18 19:48:43 -06:00
Michael Miller
18e9c1c35d
Workaround issue with Box.unbox causing segfault
...
Using Box.unbox on a nil value with a union type causes:
Invalid memory access (signal 11) at address 0x8
Related Crystal issue: https://github.com/crystal-lang/crystal/issues/11839
Fixes: https://gitlab.com/arctic-fox/spectator/-/issues/76
2022-07-18 19:47:34 -06:00
Michael Miller
61dee8d7db
Release v0.11.0
2022-07-14 20:51:48 -06:00
Michael Miller
0ba241221f
Update CHANGELOG
2022-07-12 23:37:13 -06:00
Michael Miller
0704fd2a48
Adjust evaluation order of change matcher expressions
...
Handles reference types better and matches RSpec more closely.
2022-05-14 23:30:15 -06:00
Michael Miller
35f8779ceb
Forward Example procsy to_s to example
...
https://gitlab.com/arctic-fox/spectator/-/issues/70
2022-02-22 16:36:16 -07:00
Michael Miller
cbe05cd637
Release v0.10.5
2022-01-27 13:04:03 -07:00
Michael Miller
92e839415d
Fix sample iteration with single block arg (not tuple)
2022-01-26 13:14:30 -07:00
Michael Miller
4e7318b964
Release v0.10.4
2022-01-11 16:40:53 -07:00
Michael Miller
4057089c20
Support multiple block arguments in sample block
...
https://github.com/icy-arctic-fox/spectator/issues/41#issuecomment-1010192486
2022-01-11 15:53:53 -07:00
Michael Miller
35628fbbfc
Update changelog
...
String interpolation https://github.com/icy-arctic-fox/spectator/issues/41
2022-01-10 21:30:55 -07:00
Michael Miller
07aa968d68
Report failed expectation line
...
In output listing the failures, the comment line now shows the failed expectation line.
Previously this showed the example's source line.
2022-01-03 18:47:56 -07:00
Michael Miller
66e3155a0d
Bump version 0.10.3
2021-12-13 02:43:52 -07:00
Michael Miller
4d81031274
Fix usage of 'expect' outside test block
...
Previously gave weird runtime erorr about mismatched groups.
Now correctly produces a compilation error.
2021-12-13 02:42:02 -07:00
Michael Miller
315a318d7d
Explicit "provided" block description
...
Implements https://gitlab.com/arctic-fox/spectator/-/issues/69
2021-12-01 19:11:36 -07:00
Michael Miller
bc61e0e64f
Release 0.10.2
2021-10-22 17:43:33 -06:00
Michael Miller
f1f1659836
Fix adding stubs to class methods on mocked types
2021-10-11 23:03:50 -06:00
Michael Miller
5692a77a1b
Update naming from partial to target
2021-10-11 23:03:12 -06:00
Michael Miller
36354082c7
Pass arguments to original/fallback for stubbed top-level methods
...
Addresses https://github.com/icy-arctic-fox/spectator/issues/36
2021-09-28 19:02:42 -06:00
Michael Miller
a95c5bcab7
Better handling with be
match against Value types and nil
...
Releates to https://github.com/icy-arctic-fox/spectator/issues/37
2021-09-28 18:22:41 -06:00
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