Michael Miller
|
013f799c5e
|
Remove #include_examples placeholder
Will be re-added when it is implemented.
|
2018-11-07 12:58:47 -07:00 |
|
Michael Miller
|
3abb48fe53
|
Allow implicit subject to take arbitrary arguments
This allows easy construction of the subject when it has an initializer
with parameters.
|
2018-11-07 12:55:38 -07:00 |
|
Michael Miller
|
4e690e7906
|
Merge described class and implicit subject macros
These macros are only called once.
|
2018-11-07 12:53:22 -07:00 |
|
Michael Miller
|
665c202848
|
Removes #it_behaves_like placeholder
Will re-add this when it is implemented.
|
2018-11-07 12:49:10 -07:00 |
|
Michael Miller
|
3571d9463a
|
Remove #_spectator_given_collection macro
It is no longer needed since @type resolution isn't delayed.
|
2018-11-07 12:47:42 -07:00 |
|
Michael Miller
|
06743a181c
|
Move collection class out of given module
The collection would incorrectly have access to the `given` block's
context,
instead of just the parent context, like it should.
|
2018-11-07 12:33:49 -07:00 |
|
Michael Miller
|
69905c01f3
|
Add docs for #given
|
2018-11-07 12:26:47 -07:00 |
|
Michael Miller
|
bf03cf03ce
|
Add docs for #describe and #context
|
2018-11-06 14:05:41 -07:00 |
|
Michael Miller
|
0efaf9fa85
|
Formatting
|
2018-11-03 12:14:29 -06:00 |
|
Michael Miller
|
0a218b7e9f
|
Some initial documentation for StructureDSL
|
2018-11-03 12:13:53 -06:00 |
|
Michael Miller
|
7c21f1e3eb
|
Store user-friendly name of given variable
|
2018-11-02 18:11:46 -06:00 |
|
Michael Miller
|
3facf3af9d
|
Change "description" to "what" for consistency
|
2018-10-14 11:50:08 -06:00 |
|
Michael Miller
|
d670d96045
|
Remove extra assignment operations
|
2018-09-27 18:47:54 -06:00 |
|
Michael Miller
|
7484b92db9
|
Formatting
|
2018-09-27 17:50:50 -06:00 |
|
Michael Miller
|
77b4c71c2a
|
Reduce nesting by collapsing modules with ::
|
2018-09-27 16:20:55 -06:00 |
|
Michael Miller
|
dcbca302dc
|
Fix values being wrapped twice
This simplifies some code.
|
2018-09-23 17:13:30 -06:00 |
|
Michael Miller
|
cf0c438a5d
|
Abstract away locals to SampleValues
|
2018-09-23 17:04:06 -06:00 |
|
Michael Miller
|
cddfe5591d
|
Move ValueWrapper and TypedValueWrapper to Internals
Trying to hide from top-level some inner-workings.
|
2018-09-23 16:23:26 -06:00 |
|
Michael Miller
|
7a6045a1f3
|
Change #it_behaves_like to a macro
|
2018-09-23 16:10:07 -06:00 |
|
Michael Miller
|
b3b8efdd59
|
Mark helper macros private
|
2018-09-23 16:07:58 -06:00 |
|
Michael Miller
|
70e37eeccf
|
DRY up DSL
|
2018-09-23 16:07:03 -06:00 |
|
Michael Miller
|
57c9f2c58e
|
Copy/paste to reimplement pending examples
|
2018-09-23 14:53:32 -06:00 |
|
Michael Miller
|
56ae92a25d
|
Add symbol for getting local from #given
|
2018-09-23 14:45:36 -06:00 |
|
Michael Miller
|
03a8efd7f8
|
Create test instance when example is created
This exposes errors in the framework
instead of delaying them until the test runs.
|
2018-09-23 14:39:05 -06:00 |
|
Michael Miller
|
6bf07e3967
|
Collection for #given is now an array of ValueWrapper
|
2018-09-23 12:27:08 -06:00 |
|
Michael Miller
|
ab7087649d
|
Example wrappers need a top-level initializer
The default initializer made by the compiler takes no arguments.
Use this one to not create a default initializer.
|
2018-09-23 12:19:07 -06:00 |
|
Michael Miller
|
ecba0d00ec
|
Pass group to example initializer
|
2018-09-23 12:16:38 -06:00 |
|
Michael Miller
|
0999cb2dbc
|
Use fully-qualified names
|
2018-09-23 12:05:19 -06:00 |
|
Michael Miller
|
9ba3fc898b
|
More refatoring
|
2018-09-22 19:41:56 -06:00 |
|
Michael Miller
|
a1b5533504
|
Some initial work to cleanup the DSL builder
|
2018-09-22 15:15:29 -06:00 |
|
Michael Miller
|
a82076e2b7
|
Remove type from group macros
This value is never directly seen,
so it isn't necessary to support it.
|
2018-09-22 11:38:00 -06:00 |
|
Michael Miller
|
66ca06337d
|
Fix locals not being passed to child groups
|
2018-09-21 14:26:09 -06:00 |
|
Michael Miller
|
a9d4acda36
|
Pass locals to example and test wrapper initializer
The #initialize method is defined in each context/given/module
that needs to add a local.
This is an elegant (although possibly confusing) solution.
|
2018-09-21 14:03:09 -06:00 |
|
Michael Miller
|
39be62c511
|
Temp disable until I figure out how to reference wrapped example
|
2018-09-20 18:41:21 -06:00 |
|
Michael Miller
|
8b8981494d
|
Trying to get exaples to map to their given values
|
2018-09-19 23:00:17 -06:00 |
|
Michael Miller
|
4d601281f6
|
Delay example creation by using factories
The #given block functionality specifically needs this to create
multiple examples.
|
2018-09-19 21:58:32 -06:00 |
|
Michael Miller
|
bb7f036a82
|
Make Example#group abstract
Instead of passing parent group as an argument, define the group method
in the exapmle class created by the #it macro.
|
2018-09-19 21:50:51 -06:00 |
|
Michael Miller
|
0f7640411f
|
Use symbols instead of strings for hash lookups
|
2018-09-19 21:06:10 -06:00 |
|
Michael Miller
|
a28f512ae4
|
Some code for repeating examples in given blocks
|
2018-09-19 20:49:01 -06:00 |
|
Michael Miller
|
830aa7b43a
|
Structural code for enumerating given value sets
|
2018-09-19 20:00:26 -06:00 |
|
Michael Miller
|
2be9d65997
|
Add examples to group children
|
2018-09-19 19:32:59 -06:00 |
|
Michael Miller
|
d679c356fd
|
Move conditional into context macro
|
2018-09-19 19:29:33 -06:00 |
|
Michael Miller
|
fe81341e1a
|
Rename MAPPING to GROUPS - better name
|
2018-09-19 18:58:44 -06:00 |
|
Michael Miller
|
41c0d9abc7
|
Initial changes for DSL refactor
No examples are picked up right now.
|
2018-09-19 18:53:09 -06:00 |
|
Michael Miller
|
fa73bf3a60
|
Hide method to infer type of first in collection in given macro
This was a bit of a hack.
|
2018-09-15 23:38:07 -06:00 |
|
Michael Miller
|
80fbe89b4c
|
Track children in DSL
|
2018-09-15 16:58:59 -06:00 |
|
Michael Miller
|
a06ea6088c
|
Shorten GroupDefinitions to Definitions
|
2018-09-15 16:53:28 -06:00 |
|
Michael Miller
|
967797428c
|
Move DSL to its own directory
|
2018-09-15 11:21:23 -06:00 |
|