Commit graph

1070 commits

Author SHA1 Message Date
Michael Miller
9129aa4286 Use Deque instead of Array 2019-09-17 20:35:19 -06:00
Michael Miller
52ef5e5ced Some DSL methods for hooks 2019-09-15 10:40:53 -06:00
Michael Miller
7002564ebd Add let and subject with variants
New behavior mimics RSpec - bang variant defines immediately instead of 
not storing.
2019-09-15 09:45:48 -06:00
Michael Miller
c94b284ab3 Replace large DSL files with smaller, logical groups 2019-09-15 09:15:33 -06:00
Michael Miller
3f7c16c888 Move all DSL to one module, but separate files 2019-09-13 14:33:46 -06:00
Michael Miller
fafe5606e6 Rename DSL::Builder to SpecBuilder
Place all builders under SpecBuilder.
2019-09-13 14:10:25 -06:00
Michael Miller
5d86b4f50e Get examples working again 2019-09-12 20:26:54 -06:00
Michael Miller
08ee03b1de Quickly get things somewhat working again 2019-09-12 20:16:41 -06:00
Michael Miller
64166d1c36 Some fixes 2019-09-11 22:21:06 -06:00
Michael Miller
a100191875 Merge branch 'example-restructure' of gitlab.com:arctic-fox/spectator into example-restructure 2019-09-08 11:02:02 -06:00
Michael Miller
a178db05ac Use TestWrapper in Example classes 2019-09-08 10:38:26 -06:00
Michael Miller
de8f298676 Remove hooks, conditions, and sample vlues (for now)
Removed only from examples and example groups.
2019-09-08 10:28:02 -06:00
Michael Miller
e304224bd6 Move stack handling to its own type 2019-09-08 09:59:25 -06:00
Michael Miller
f25eb9164f Some test creation rewrite 2019-09-08 09:58:15 -06:00
Michael Miller
0706a9986c Ensure example is set to finished after running 2019-09-06 13:08:41 -06:00
Michael Miller
1c5b46b981 Use fresh variables 2019-09-01 00:54:04 -06:00
Michael Miller
19913a28d1 Gut factories and example structure code 2019-08-31 13:12:40 -06:00
Michael Miller
b8e125e38f Add test wrapper 2019-08-31 13:12:17 -06:00
Michael Miller
00a2495027 Change test root to SpectatorTest 2019-08-31 13:11:59 -06:00
Michael Miller
752b7f0ffa Update version constant 2019-08-31 10:14:06 -06:00
Michael Miller
bfe641e07e Move sample values to group instance
The goal is to construct examples with a parameterless initializer.
This doesn't quite work, since the sample values are retrieved via the
harness, which doesn't have an active example when the sample values are
created.
2019-08-30 14:46:24 -06:00
Michael Miller
4ecc2c6004 Include ExampleDSL at root
Will need to check if methods can run in that scope.
2019-08-30 13:14:48 -06:00
Michael Miller
64045171c2 Change contexts from modules to classes 2019-08-30 12:39:03 -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