Michael Miller
|
1507a447c8
|
Update specs to use new source arguments
Used `new_partial` where the underlying partial didn't matter for the
test.
|
2019-02-14 17:04:59 -07:00 |
|
Michael Miller
|
36c98db0ae
|
Update spec helpers to have source information
|
2019-02-14 15:41:59 -07:00 |
|
Michael Miller
|
f19b33d7a2
|
Add spec for Report and fix some bugs
|
2019-02-14 14:25:46 -07:00 |
|
Michael Miller
|
6151912fa6
|
Add spec for test suite
|
2019-02-12 22:33:48 -07:00 |
|
Michael Miller
|
493e30acee
|
Remove elapsed time from pending results
|
2019-02-12 16:36:06 -07:00 |
|
Michael Miller
|
577877e067
|
Add spec for runner
Added a spy for detecting when formatter methods are called.
|
2019-02-12 16:10:14 -07:00 |
|
Michael Miller
|
50bc1af816
|
Method for creating groups of spy examples
|
2019-02-12 13:45:19 -07:00 |
|
Michael Miller
|
1f2f7f2214
|
Add spec for have_value matcher
|
2019-02-05 19:37:41 -07:00 |
|
Michael Miller
|
da9e653a89
|
Add spec for have_key matcher
|
2019-02-05 19:26:46 -07:00 |
|
Michael Miller
|
8a09ddac04
|
Add spec for predicate matcher
|
2019-02-05 10:36:59 -07:00 |
|
Michael Miller
|
5da222d7a0
|
Whitespace
|
2019-02-04 16:27:40 -07:00 |
|
Michael Miller
|
71427e4f6b
|
Use spy to test that matchers use === operator
|
2019-02-04 16:26:53 -07:00 |
|
Michael Miller
|
e42e5b30bb
|
Fix test
|
2019-02-04 16:20:35 -07:00 |
|
Michael Miller
|
75c4bcad54
|
Add spec for have_attributes matcher
|
2019-02-04 16:19:39 -07:00 |
|
Michael Miller
|
ade4af0153
|
Add tests for multiple arguments
|
2019-02-01 20:44:25 -07:00 |
|
Michael Miller
|
239779135f
|
Fix have matcher tests for multiple arguments
|
2019-02-01 20:29:13 -07:00 |
|
Michael Miller
|
4043a76a07
|
Add tests for multiple arguments
|
2019-02-01 19:56:46 -07:00 |
|
Michael Miller
|
acea12cafb
|
Fix contain matcher tests for multiple arguments
|
2019-02-01 19:45:30 -07:00 |
|
Michael Miller
|
196b4d97a5
|
Add spec for have matcher
|
2019-02-01 16:43:18 -07:00 |
|
Michael Miller
|
2a91191a6b
|
Add spec for contain matcher
|
2019-01-31 23:12:48 -07:00 |
|
Michael Miller
|
5f9c0385ad
|
Check for mentions of first and last
|
2019-01-31 22:13:50 -07:00 |
|
Michael Miller
|
a91758b3f3
|
Add spec for end_with matcher
|
2019-01-31 22:11:38 -07:00 |
|
Michael Miller
|
e6e4f28a4c
|
Add spec for start_with matcher
|
2019-01-31 19:36:35 -07:00 |
|
Michael Miller
|
3731b6d785
|
Remove BlockExpectation
|
2019-01-31 13:32:34 -07:00 |
|
Michael Miller
|
ff4e148509
|
Rename ValueExpectation to Expectation in tests
|
2019-01-31 13:30:09 -07:00 |
|
Michael Miller
|
2863ae7dfe
|
Add spec for block expectation and partial
|
2019-01-28 16:03:33 -07:00 |
|
Michael Miller
|
651127f2d4
|
Add spec for empty matcher
Mark question matchers as done (for now).
More may be added later if they're common.
|
2019-01-26 17:09:24 -07:00 |
|
Michael Miller
|
aa94ec0e33
|
Sub-types should be not match
|
2019-01-26 16:44:46 -07:00 |
|
Michael Miller
|
3bfaa07d4f
|
Add spec for nil matcher
|
2019-01-26 16:41:21 -07:00 |
|
Michael Miller
|
c3d7aef7a9
|
Add a couple of type tests
|
2019-01-26 16:34:58 -07:00 |
|
Michael Miller
|
12864492b7
|
Add spec for range modifier methods
|
2019-01-25 13:52:41 -07:00 |
|
Michael Miller
|
ac08806010
|
Add spec for RangeMatcher
|
2019-01-25 13:12:34 -07:00 |
|
Michael Miller
|
6a91b3e399
|
Formatting
|
2019-01-25 11:09:11 -07:00 |
|
Michael Miller
|
e33ce5c182
|
Implement remaining pending tests
|
2019-01-25 11:08:57 -07:00 |
|
Michael Miller
|
6665e4d396
|
Implement some pending tests
|
2019-01-24 22:36:05 -07:00 |
|
Michael Miller
|
cbb4c18668
|
Formatting
|
2019-01-23 23:16:18 -07:00 |
|
Michael Miller
|
a869d4f23f
|
More pending tests to implement
|
2019-01-23 23:14:34 -07:00 |
|
Michael Miller
|
f0a972ed06
|
Start on some condition tests
|
2019-01-23 23:01:16 -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
|
2758ba7643
|
Add spec for BeComparison
|
2019-01-23 21:36:52 -07:00 |
|
Michael Miller
|
f09aaf59e6
|
Formatting
|
2019-01-23 21:11:01 -07:00 |
|
Michael Miller
|
06ee53a7b6
|
Add spec for GreaterThanEqualMatcher
|
2019-01-23 21:10:17 -07:00 |
|
Michael Miller
|
e3d9b55ae7
|
Add spec for GreaterThanMatcher
|
2019-01-23 21:08:52 -07:00 |
|
Michael Miller
|
99991de2da
|
Add spec for LessThanEqualMatcher
|
2019-01-23 21:05:50 -07:00 |
|
Michael Miller
|
06bb969061
|
Add spec for LessThanMatcher
|
2019-01-23 21:03:44 -07:00 |
|
Michael Miller
|
d86b9dad11
|
Add spec for InequalityMatcher
|
2019-01-23 21:02:44 -07:00 |
|
Michael Miller
|
73c4334246
|
Use macros to create methods for all watched operators
|
2019-01-23 21:02:32 -07:00 |
|
Michael Miller
|
95b0563f73
|
Add spec for TruthyMatcher
|
2019-01-23 16:06:18 -07:00 |
|
Michael Miller
|
41729217bb
|
Add tests for pre- and post-conditions in groups
|
2019-01-23 15:12:09 -07:00 |
|
Michael Miller
|
37c45eb285
|
Shorten pre and post usage
|
2019-01-23 14:46:15 -07:00 |
|
Michael Miller
|
a32b511e0b
|
Add spec for match (regex) matcher
|
2019-01-19 14:49:13 -07:00 |
|
Michael Miller
|
19da933c2f
|
Add spec for be_a matcher
|
2019-01-19 14:29:07 -07:00 |
|
Michael Miller
|
f2569ea3a0
|
Add spec for be matcher
|
2019-01-19 13:50:57 -07:00 |
|
Michael Miller
|
db89a99562
|
Add specs for ExampleConditions
|
2019-01-17 14:14:10 -07:00 |
|
Michael Miller
|
d9363fc8a7
|
Update existing specs to support conditions
|
2019-01-11 10:09:40 -07:00 |
|
Michael Miller
|
191eb02cbe
|
Add dummy instance values
|
2019-01-01 17:06:24 -07:00 |
|
Michael Miller
|
c1b27bb672
|
Rename "given" to "sample"
This falls in line with the `SampleValues` type.
It also frees up the keyword "given" to be used for something else.
|
2018-12-27 11:15:44 -07:00 |
|
Michael Miller
|
3573845dc2
|
Finally implement pending test
|
2018-12-13 14:53:04 -07:00 |
|
Michael Miller
|
77efdd84be
|
Use tuples instead of parallel arrays
|
2018-12-13 14:48:20 -07:00 |
|
Michael Miller
|
5a87753c7d
|
Add test for SampleValues#each
|
2018-12-13 14:41:22 -07:00 |
|
Michael Miller
|
ef12e3967b
|
Add checks for cause of hook error
Fix some tests that had copy/paste mistakes.
|
2018-12-07 23:07:04 -07:00 |
|
Michael Miller
|
ef490c78b0
|
Fix test
|
2018-12-07 23:01:08 -07:00 |
|
Michael Miller
|
d710929479
|
Fix collateral damage from rev aeebbaa
|
2018-12-07 22:53:17 -07:00 |
|
Michael Miller
|
22f32eb03e
|
Fix tests that had issues setting children
|
2018-12-07 22:42:52 -07:00 |
|
Michael Miller
|
2aa7a75eea
|
Implement remaining hook error tests
|
2018-12-07 22:05:23 -07:00 |
|
Michael Miller
|
99de2335aa
|
More tests for exceptions in hooks
|
2018-12-07 17:02:53 -07:00 |
|
Michael Miller
|
e87f0b5e64
|
Ability to pass custom hooks to SpyExample
|
2018-12-07 17:02:07 -07:00 |
|
Michael Miller
|
f20a0e2241
|
Formatting
|
2018-12-05 20:27:31 -07:00 |
|
Michael Miller
|
2ce599d6a4
|
Some initial work on runnable example tests
|
2018-12-05 20:25:11 -07:00 |
|
Michael Miller
|
06230f128d
|
Add example for producing errors
|
2018-12-05 20:25:11 -07:00 |
|
Michael Miller
|
712aa99fed
|
Adjust tests to use new hook methods
|
2018-12-05 20:21:19 -07:00 |
|
Michael Miller
|
e0f5862960
|
Add missing proc call
|
2018-11-26 14:27:32 -07:00 |
|
Michael Miller
|
3207b7c8d2
|
Add tests for hooks
|
2018-11-26 14:21:43 -07:00 |
|
Michael Miller
|
1193fdc8ff
|
Add spec for PendingExample
|
2018-11-26 14:01:15 -07:00 |
|
Michael Miller
|
b414438627
|
Add spec for RootExampleGroup
|
2018-11-23 11:20:28 -07:00 |
|
Michael Miller
|
d117f487a3
|
Implement remaining tests
|
2018-11-20 20:56:33 -07:00 |
|
Michael Miller
|
e1501c3416
|
Some tests for NestedExampleGroup
|
2018-11-20 16:34:48 -07:00 |
|
Michael Miller
|
c68cd7e16a
|
Move example hooks helper methods to their own file
|
2018-11-20 14:51:11 -07:00 |
|
Michael Miller
|
7517042195
|
Add spec for ExpectationFailed
|
2018-11-20 12:55:37 -07:00 |
|
Michael Miller
|
b8ee29ab0e
|
Formatting
|
2018-11-20 12:48:19 -07:00 |
|
Michael Miller
|
1802f27f68
|
Add spec for ExampleIterator
|
2018-11-20 12:47:55 -07:00 |
|
Michael Miller
|
101489ea19
|
Add spec for ExampleHooks
|
2018-11-19 22:51:59 -07:00 |
|
Michael Miller
|
d576e4a1fa
|
Missing # prefix for #to_not and #not_to
|
2018-11-19 22:00:45 -07:00 |
|
Michael Miller
|
05c3a75683
|
Add specs for result types
|
2018-11-16 11:39:07 -07:00 |
|
Michael Miller
|
ee2491fef8
|
Down-cast to preven type issues when inferring arrays
|
2018-11-16 11:38:50 -07:00 |
|
Michael Miller
|
195e34d360
|
Add tests for #to and #to_not
|
2018-11-14 13:10:42 -07:00 |
|
Michael Miller
|
49deb96a11
|
Capture harness in spy example
|
2018-11-14 12:58:32 -07:00 |
|
Michael Miller
|
4a531bd83f
|
Move PassingExample to its own file
Missed this one when moving code around before.
|
2018-11-14 12:55:21 -07:00 |
|
Michael Miller
|
f0204a32ea
|
Fix specs to work with new Expectation type
|
2018-11-14 02:15:55 -07:00 |
|
Michael Miller
|
66dcc21383
|
Move helper methods and classes to their own directory
|
2018-11-09 11:20:30 -07:00 |
|
Michael Miller
|
2f525d49ef
|
Add spec for GivenExampleGroupBuilder
|
2018-11-02 20:17:59 -06:00 |
|
Michael Miller
|
14ee762ad7
|
Add test for value of "what"
Minor changes to remove unused parts.
|
2018-11-02 18:23:04 -06:00 |
|
Michael Miller
|
c8609ab609
|
Formatting
|
2018-11-02 15:35:57 -06:00 |
|
Michael Miller
|
7ce732a828
|
Add spec for NestedExampleGroupBuilder
|
2018-11-02 15:35:50 -06:00 |
|
Michael Miller
|
1657518deb
|
Add spec for RootExampleGroupBuilder
|
2018-11-02 15:28:51 -06:00 |
|
Michael Miller
|
ffdc0c40ac
|
Add spec for ExampleFactory
|
2018-11-01 20:25:38 -06:00 |
|
Michael Miller
|
8e7f5cf82b
|
Capture sample values for tests
|
2018-11-01 20:23:28 -06:00 |
|
Michael Miller
|
29219c8b8c
|
Formatting
|
2018-10-23 10:51:50 -06:00 |
|
Michael Miller
|
dbcf9ec57d
|
Add spec for TypedValueWrapper
|
2018-10-23 10:49:52 -06:00 |
|
Michael Miller
|
c711115023
|
Add spec for SampleValues
|
2018-10-23 10:42:18 -06:00 |
|