Michael Miller
|
ed3f524f8d
|
Add empty matcher
|
2019-01-26 17:02:42 -07:00 |
|
Michael Miller
|
028065ad26
|
Add #be_nil to DSL
|
2019-01-26 16:42:58 -07:00 |
|
Michael Miller
|
5c68e7eb52
|
Create parameter-less initializer
|
2019-01-26 16:40:51 -07:00 |
|
Michael Miller
|
840da3a8b7
|
Derive type matcher from condition matcher
|
2019-01-26 16:26:26 -07:00 |
|
Michael Miller
|
69d0856256
|
Add nil matcher
|
2019-01-26 16:24:17 -07:00 |
|
Michael Miller
|
90de8c312d
|
Create abstract conditional matcher
|
2019-01-26 16:23:16 -07:00 |
|
Michael Miller
|
90c5364946
|
Can't use "new" by itself like in Ruby
|
2019-01-25 13:25:40 -07:00 |
|
Michael Miller
|
abc321130a
|
Add DSL for range matching
|
2019-01-25 13:20:38 -07:00 |
|
Michael Miller
|
3be2302df9
|
Add range modifier methods
|
2019-01-25 13:20:17 -07:00 |
|
Michael Miller
|
bc45a3bf41
|
Add basic range matcher
|
2019-01-25 13:00:19 -07:00 |
|
Michael Miller
|
154832e5c4
|
Add be_an variation of be_a
|
2019-01-25 11:21:41 -07:00 |
|
Michael Miller
|
c31557e8ff
|
Move everything in BeComparison to TruthyMatcher
This is to match RSpec's ability to use "be" by itself.
For instance: `expect(foo).to be`
|
2019-01-23 22:10:03 -07:00 |
|
Michael Miller
|
28c13cd175
|
Add xit to DSL
|
2019-01-23 21:57:16 -07:00 |
|
Michael Miller
|
e746ede287
|
Add specify to DSL
|
2019-01-23 21:56:02 -07:00 |
|
Michael Miller
|
0c284b6713
|
Add other comparison matchers to DSL
|
2019-01-23 21:45:16 -07:00 |
|
Michael Miller
|
d02e5d33b4
|
Add inequality matcher
|
2019-01-23 20:39:52 -07:00 |
|
Michael Miller
|
93801553b6
|
Implement equality method for BeComparison
|
2019-01-23 20:38:23 -07:00 |
|
Michael Miller
|
9ccba7570e
|
Add greater-than-equal-to matcher
|
2019-01-23 20:37:33 -07:00 |
|
Michael Miller
|
ea6d7eac2a
|
Add greater-than matcher
|
2019-01-23 20:34:53 -07:00 |
|
Michael Miller
|
52d0e6d55e
|
Add less-than-equal-to matcher
|
2019-01-23 20:33:21 -07:00 |
|
Michael Miller
|
4ccc27321e
|
Add less-than matcher
|
2019-01-23 20:31:28 -07:00 |
|
Michael Miller
|
f7d5c27e65
|
Should be ExpectedType instead of ActualType
|
2019-01-23 20:25:06 -07:00 |
|
Michael Miller
|
b93ef1fd2d
|
Initial structure for "be OP value" syntax
|
2019-01-23 17:17:45 -07:00 |
|
Michael Miller
|
57c15b9088
|
Split #expects macro
|
2019-01-23 16:48:12 -07:00 |
|
Michael Miller
|
78698d2de9
|
Can't support multiple arguments (expected values)
The macro would only "attach" `.to` to the last partial.
|
2019-01-23 16:43:59 -07:00 |
|
Michael Miller
|
17c66dd732
|
Split #expect macro
TIL Crystal supports macro overloading, the argument count must be
different.
|
2019-01-23 16:42:17 -07:00 |
|
Michael Miller
|
046d946669
|
Handle case of missing block body for #given better
|
2019-01-23 16:31:54 -07:00 |
|
Michael Miller
|
3d4d8f67be
|
Document truthy flag
|
2019-01-23 16:07:26 -07:00 |
|
Michael Miller
|
a827b191a1
|
Use #actual instead of #value
|
2019-01-23 16:05:59 -07:00 |
|
Michael Miller
|
8c6552a995
|
Add DSL for be_truthy and be_falsey
|
2019-01-23 15:51:52 -07:00 |
|
Michael Miller
|
9befd5ee4f
|
Add truthy matcher
|
2019-01-23 15:51:36 -07:00 |
|
Michael Miller
|
429c2d7302
|
Add #be_true and #be_false to DSL
|
2019-01-23 15:35:32 -07:00 |
|
Michael Miller
|
0af3efea2a
|
Document pre- and post-condition run methods
Mark pre- and post-condition functionality complete in README.
|
2019-01-23 15:15:01 -07:00 |
|
Michael Miller
|
2f5e59d88b
|
Fix failing test
Pre-conditions with parent running out-of-order.
|
2019-01-23 15:13:27 -07:00 |
|
Michael Miller
|
ed8fad2c97
|
Add documentation for pre- and post-conditions
|
2019-01-23 14:37:43 -07:00 |
|
Michael Miller
|
260e1884ab
|
Implement match (regex) matcher
|
2019-01-19 14:40:14 -07:00 |
|
Michael Miller
|
419b1322bf
|
Create parameterless initializer for TypeMatcher
|
2019-01-19 14:28:52 -07:00 |
|
Michael Miller
|
e66c0abcfb
|
Change described_class to a macro
|
2019-01-19 14:17:28 -07:00 |
|
Michael Miller
|
46875d7770
|
Implement be_a matcher
|
2019-01-19 14:08:50 -07:00 |
|
Michael Miller
|
4a7167597b
|
Remove documentation for unsupported cases
Turns out the `case` keyword does some extra magic that isn't trivially
implemented.
|
2019-01-19 13:44:38 -07:00 |
|
Michael Miller
|
45cdef021b
|
Swap operands to get expected result
|
2019-01-19 13:42:45 -07:00 |
|
Michael Miller
|
4a1b646015
|
Fix type resolution issue, force to Result
|
2019-01-19 13:37:34 -07:00 |
|
Michael Miller
|
a3ee53ed33
|
Implement be matcher
|
2019-01-19 13:29:10 -07:00 |
|
Michael Miller
|
6c8ec7953a
|
Add note about using pre- and post-conditions
|
2019-01-17 16:02:29 -07:00 |
|
Michael Miller
|
ec9416285b
|
Add documentation to ExampleConditions
|
2019-01-17 15:42:58 -07:00 |
|
Michael Miller
|
38202ff605
|
Initial addition of pre- and post-conditions
|
2019-01-09 16:17:33 -07:00 |
|
Michael Miller
|
ab90f946d9
|
Allow "it" syntax in #given block
|
2019-01-09 15:08:01 -07:00 |
|
Michael Miller
|
17039d44f0
|
Initial implementation of #given macro
|
2019-01-09 14:58:10 -07:00 |
|
Michael Miller
|
950fcd250c
|
Add other syntaxes for #expect method
Can now check multiple values in the same #expect call.
Can use method short-hand syntax (&.foo) in #expect call.
|
2019-01-09 13:59:42 -07:00 |
|
Michael Miller
|
d3bf5eb4b1
|
Add short-hand #is and #is_not macros
These can be used for the one-liner "it" syntax.
|
2019-01-09 11:28:31 -07:00 |
|