Commit graph

1850 commits

Author SHA1 Message Date
Michael Miller
989e5db389
Remove mock-specific changes 2022-06-01 23:44:52 -06:00
Michael Miller
69a89daeb8
Run smoke test for nightly 2022-06-01 23:42:37 -06:00
Michael Miller
712edf20c1
Split spec into multiple jobs 2022-06-01 23:41:39 -06:00
Michael Miller
9b2fd7e791
Update Ameba to 1.0 for compatibility with Crystal 1.4.0 2022-04-10 10:18:25 -06:00
Michael Miller
419e7c1b8d
Use Box for Wrapper implementation
This won't raise on invalid casts.
It should reduce the amount of instantiated types and methods.
2022-03-19 23:00:32 -06:00
Michael Miller
31d68a9ca3
Don't capture original block as proc 2022-02-22 16:55:11 -07: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
eb8bd88927
Handle case with typeless block
Fixes syntax:
`stub method(&block)`

To stub a block with args, use:
`stub method(&block : Type -> Type)`

Addresses https://github.com/icy-arctic-fox/spectator/issues/42
2022-02-21 18:17:44 -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
c1841526d4
Test string interpolation with sample 2022-01-10 21:49:54 -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
dd49fe3a67
Support string interpolation for example names 2022-01-10 21:29:05 -07:00
Michael Miller
aabec269cb
Raise compilation error for string interpolation in group name 2022-01-10 21:11:28 -07:00
Michael Miller
941b91fef4
Spelling 2022-01-10 21:10:36 -07:00
Michael Miller
be79367256
Formatting 2022-01-07 17:27:25 -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
d9269e17a8
Better implementation of explicit subject 2021-12-02 01:57:34 -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
01f9499828
Initial work on architecture doc 2021-12-01 16:10:18 -07:00
Michael Miller
6281f38b32
Add contributing guide 2021-12-01 16:10:04 -07:00
Michael Miller
59ce312341
Fix typos and spelling 2021-11-28 15:45:17 -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
53f7c94e8a
Add missing negation variants for method stubs 2021-10-11 22:39:16 -06:00
Michael Miller
9d4a5886e5
Reorganize some specs 2021-10-09 13:39:44 -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
Mike Miller
20e17851c6 Merge branch 'doc-fix-given-provider' into 'master'
Updated documentation to the current syntax, no need to confuse people with deprecated stuff.

See merge request arctic-fox/spectator!34
2021-09-25 16:14:39 +00:00
iain barnett
458d01394c Updated documentation to the current syntax, no need to confuse people with deprecated stuff. 2021-09-25 13:56:49 +09:00
Michael Miller
83fa0499d3
Fix https://github.com/icy-arctic-fox/spectator/issues/34 2021-09-22 18:01:15 -06:00
Michael Miller
2f1ac1374b
Use RegexMatcher to force used =~ operator 2021-09-22 17:57:56 -06:00
Michael Miller
64b9c13436
Remove Test prefix 2021-09-22 17:53:42 -06:00
Michael Miller
627a288358
Missing doc 2021-09-20 11:01:00 -06:00
Michael Miller
81126b1557
Bump version in README to 0.10.1 2021-09-16 09:13:50 -06:00
Michael Miller
9ff6a52cee
GitHub and GitLab fork links 2021-09-16 09:13:29 -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
Mike Miller
e5a3a92085 Merge branch 'master' into 'master'
Handle directories with spaces in the path/filename

See merge request arctic-fox/spectator!33
2021-09-16 13:56:06 +00:00
Todd Sundsted
a3b7f5f4b1 Handle directories with spaces in the path/filename 2021-09-16 09:02:34 -04: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
Mike Miller
60085eb726 Merge branch 'release/0.10' into 'master'
v0.10 Release

Closes #57 and #28

See merge request arctic-fox/spectator!29
2021-08-19 19:59:00 +00:00