Commit graph

958 commits

Author SHA1 Message Date
Michael Miller
425240e66f Merge branch 'release/0.9' into mocks-and-doubles 2019-09-27 14:07:02 -06:00
Michael Miller
8c1019753f Merge remote-tracking branch 'origin/master' into release/0.9 2019-09-24 23:14:16 -06:00
Mike Miller
35928133a9 Merge branch 'crystal-0.31.0' into 'master'
Crystal 0.31.0

See merge request arctic-fox/spectator!19
2019-09-24 03:04:45 +00:00
Michael Miller
c3427a8115 Update to version 0.8.3 2019-09-23 21:03:46 -06:00
Michael Miller
335a76527b Error on warnings 2019-09-23 21:03:04 -06:00
Michael Miller
b79e580822 Add build against nightly Crystal 2019-09-23 20:58:47 -06:00
Michael Miller
3a6fcb9b0d Fix value negation of attribute matcher 2019-09-23 20:52:03 -06:00
Michael Miller
00d1cd9ea3 Address warnings with return types in generated types 2019-09-23 20:42:04 -06:00
Michael Miller
43dc106c18 Add return type annotations
Addresses Crystal compiler warning about abstract method return types.
2019-09-23 20:32:21 -06:00
Michael Miller
adbfb7da7c Use integer division - Crystal 0.31.0 change 2019-09-23 19:38:15 -06:00
Michael Miller
5d5cc0a41e Update to Crystal 0.31.0 2019-09-23 19:38:00 -06:00
Michael Miller
00ebd5849a Merge branch 'release/0.9' into mocks-and-doubles 2019-08-28 11:17:48 -06:00
Michael Miller
bfd298c0f2 Merge branch 'master' into release/0.9 2019-08-28 11:11:51 -06:00
Michael Miller
6cbc4ed3f7 Update README 2019-08-28 11:10:14 -06:00
Michael Miller
6e9633d001 Hacked in double instance creation 2019-08-26 22:48:15 -06:00
Michael Miller
3462bdea1a Some initial double code 2019-08-26 21:49:47 -06:00
Michael Miller
70e01364ce Address Ameba issue 2019-08-26 21:11:21 -06:00
Michael Miller
6536092298 Merge branch 'release/0.9' into mocks-and-doubles 2019-08-26 21:08:26 -06:00
Michael Miller
579c52f28c Update to newer Ameba 2019-08-26 21:08:11 -06:00
Michael Miller
b32421c6bb Update version to 0.9.0 2019-08-26 21:07:00 -06:00
Michael Miller
4abf97139b Experimenting with auto-mocking methods 2019-08-26 21:06:06 -06:00
Michael Miller
a49f8eaa71 Add Mocks and Doubles to README 2019-08-26 21:04:54 -06:00
Mike Miller
14c7a46452 Merge branch 'gh-issue-1' into 'master'
Workaround Crystal compiler issue 7060/6920

See merge request arctic-fox/spectator!18
2019-08-22 01:31:14 +00:00
Michael Miller
a75ab04dd5 Update version to 0.8.2 2019-08-21 19:28:17 -06:00
Michael Miller
325af1f24e Workaround for Crystal issue
Fix for GitHub issue 1 - 
https://github.com/icy-arctic-fox/spectator/issues/1
Works around Crystal issue 7060 (6920) - 
https://github.com/crystal-lang/crystal/issues/7060

This should be reverted after it is fixed in the Crystal compiler.
2019-08-21 19:26:40 -06:00
Mike Miller
9a3efb95f3 Merge branch 'issue-20-sample-values' into 'master'
Fix nested sample_value blocks

Closes #20

See merge request arctic-fox/spectator!15
2019-08-17 14:26:15 +00:00
Michael Miller
c21ff183f2 Update version to 0.8.1 2019-08-17 08:24:52 -06:00
Michael Miller
cede88bf0c Update spec with new arguments 2019-08-17 08:24:06 -06:00
Michael Miller
c36859b42b Correct docs 2019-08-17 08:10:26 -06:00
Michael Miller
7f58c52e43 Cleanup 2019-08-17 08:05:05 -06:00
Michael Miller
498635d288 Pass along a proc to generate the array
The "to_a" method is actually dynamically generated.
2019-08-17 08:00:16 -06:00
Michael Miller
43440d37b0 Explicit initializer with sample values
Not sure why it isn't getting the one from the module.
2019-08-17 07:59:32 -06:00
Michael Miller
a59e38155e Defer collection evaluation until build 2019-08-17 07:51:29 -06:00
Michael Miller
34b5487e6f Pass along class type instead of collection 2019-08-15 17:38:54 -06:00
Michael Miller
01c4b78716 Move placeholder initializer up a level 2019-08-15 16:43:25 -06:00
Mike Miller
cf6cf5db59 Merge branch 'release/0.8' into 'master'
Version 0.8.0

Closes #18

See merge request arctic-fox/spectator!7
2019-08-12 21:27:18 +00:00
Michael Miller
1cbeff69df Update to Crystal 0.30.1 2019-08-12 15:23:51 -06:00
Mike Miller
db9715341e Merge branch 'all-matcher' into 'release/0.8'
All matcher

See merge request arctic-fox/spectator!14
2019-08-12 20:19:45 +00:00
Michael Miller
0c205a1bf2 Mark all-matcher as complete 2019-08-12 14:18:08 -06:00
Michael Miller
b026668de2 Formatting 2019-08-12 14:17:23 -06:00
Michael Miller
46c775932a Negated all match is not supported 2019-08-12 14:17:04 -06:00
Michael Miller
0cb77b3355 Add all-matcher to DSL 2019-08-12 14:07:13 -06:00
Michael Miller
8520697efa Initial code for all-matcher 2019-08-12 14:05:14 -06:00
Mike Miller
454455d601 Merge branch 'change-matchers' into 'release/0.8'
Change matchers

See merge request arctic-fox/spectator!10
2019-08-12 05:12:51 +00:00
Michael Miller
41580acee2 Mark change matchers as complete 2019-08-11 23:11:15 -06:00
Michael Miller
4e15487a0f Add relative change matcher 2019-08-11 23:08:45 -06:00
Michael Miller
c19f442e6c Add #by modifier methods 2019-08-11 13:52:22 -06:00
Michael Miller
848f80ddf8 Add block short-hand syntax support to change matcher 2019-08-11 13:16:40 -06:00
Michael Miller
2666f80653 Hackish fix for block short-hand syntax
Dunno when this broke or how it ever worked. 😐
2019-08-11 13:16:18 -06:00
Michael Miller
27436b4e09 Need to use fresh variables in this macro 2019-08-11 12:55:38 -06:00