Commit graph

878 commits

Author SHA1 Message Date
Michael Miller
77307f6eb1 Split part of RangeMatcher off as CollectionMatcher
Use CollectionMatcher for `be_within`.
The `#of` method creates a RangeMatcher.
2019-05-16 18:20:08 -06:00
Michael Miller
fa5c13df0e Remove min-max variation of be_within
Use `be_between(min, max)` instead.
This matches RSpec.
2019-05-16 18:09:21 -06:00
Michael Miller
0fc28241dd Add be_between matcher which is an alias of be_within 2019-05-14 21:50:09 -06:00
Mike Miller
29abe79809 Merge branch 'equality-matcher-changes' into 'master'
Equality matcher changes

See merge request arctic-fox/spectator!2
2019-05-09 01:21:22 +00:00
Michael Miller
7e20521030 Bump to 0.6.0
Breaking change with be() and match()
2019-05-08 17:02:30 -06:00
Michael Miller
2378594c5d Use reference matching for be() 2019-05-08 16:59:59 -06:00
Michael Miller
f53bc26c28 Add ReferenceMatcher type 2019-05-08 16:59:36 -06:00
Michael Miller
7168b26218 Remove regex matcher - use case matcher 2019-05-08 16:39:00 -06:00
Mike Miller
e4ec47f413 Merge branch 'exception-matcher-args-fix' into 'master'
Exception matcher args fix

Closes #4

See merge request arctic-fox/spectator!1
2019-05-08 21:27:56 +00:00
Michael Miller
725f83ebca Bump version to 0.5.3 2019-05-08 15:22:51 -06:00
Michael Miller
6d81e26298 Fix for issue #4 2019-05-08 15:22:32 -06:00
Michael Miller
e5ad6fc514 Bump version to 0.5.2 2019-04-22 20:29:35 -06:00
Michael Miller
8480349ff0 Force after_all hooks to run on fail-fast
Resolves issues #2.
2019-04-22 20:29:02 -06:00
Michael Miller
00045ba9be Tests for nested groups and fail-fast 2019-04-22 20:27:54 -06:00
Michael Miller
1d530de5b1 Add tests for fail-fast and after hooks
Inspecting issue #2
2019-04-22 19:12:45 -06:00
Michael Miller
b305c829be Allow hooks and conditions to be passed to create 2019-04-22 18:22:12 -06:00
Michael Miller
29df8716de Fixes and tweaks for Crystal 0.28
Bump version to 0.5.1
2019-04-18 19:32:24 -06:00
Michael Miller
c7ec6b0287 Note on repository mirror 2019-04-16 20:12:12 -06:00
Michael Miller
7b8ff57af9 Add description to shard.yml 2019-04-07 10:54:13 -06:00
Michael Miller
686671de51 Cache bin/ directory for ameba 2019-04-06 19:01:02 -06:00
Michael Miller
7348ae5757 Merge branch 'master' of gitlab.com:arctic-fox/spectator 2019-04-06 18:54:47 -06:00
Michael Miller
3eb6a1d676 Remove unused block arguments 2019-04-06 17:20:12 -06:00
Michael Miller
53bfcc25ef Add Ameba and address code linting issues 2019-04-06 17:19:02 -06:00
Michael Miller
99926c775e Fix symbolic not working for short-hand it syntax 2019-04-06 15:21:37 -06:00
Michael Miller
365bd1ec2f Fix failing tests 2019-04-06 12:48:41 -06:00
Michael Miller
dd943c9046 Fix botched copy-paste 2019-04-06 12:42:08 -06:00
Michael Miller
659174c66a Add placeholder negate method 2019-04-06 12:41:38 -06:00
Michael Miller
ddc55ba067 Don't inspect in AlternativeMatchDataValue to_s 2019-04-06 00:03:36 -06:00
Michael Miller
33c838a062 Fix copy/paste fail 2019-04-05 23:59:27 -06:00
Michael Miller
12c71a25cd Merge branch 'master' of gitlab.com:arctic-fox/spectator 2019-04-05 23:53:55 -06:00
Michael Miller
9650d7f9c1 Use inspect on values in to_s
The to_json method calls to_s, which results in incorrect output.
2019-04-05 23:13:23 -06:00
Michael Miller
53de72805b Add skip macro as alternative to pending 2019-04-05 20:07:04 -06:00
Michael Miller
c18d9c4ffd Allow top-level context macro 2019-04-05 18:38:57 -06:00
Michael Miller
7a0e28945a Merge branch 'master' of gitlab.com:arctic-fox/spectator 2019-04-03 18:20:24 -06:00
Michael Miller
31a2bbcebb random_sample should use Spectator's global random 2019-04-02 22:22:40 -06:00
Michael Miller
57c54d943c Add info on generated docs 2019-04-02 22:10:52 -06:00
Michael Miller
675ef60f9d Consistent version 2019-04-02 22:05:27 -06:00
Michael Miller
7a8ebf6db5 Generate docs and publish to pages 2019-04-02 21:38:36 -06:00
Michael Miller
157fdb813c Fix doc regarding hook execution order 2019-04-02 19:46:32 -06:00
Michael Miller
fef8715ce1 Allow it, pending, and xit to omit what 2019-03-31 20:56:08 -06:00
Michael Miller
58031e01c6 Missed a usage of yield that should be block 2019-03-31 18:53:40 -06:00
Michael Miller
60f50b6378 Add ability to name subjects 2019-03-31 12:53:00 -06:00
Michael Miller
0990b0fde2 Add before/after hook example 2019-03-31 12:47:34 -06:00
Michael Miller
2cea10a124 Fix undefined user variable in example 2019-03-31 12:47:22 -06:00
Michael Miller
b78b6dde54 Update README with more examples 2019-03-31 12:45:58 -06:00
Michael Miller
0b8d624a94 Expand matcher checklist
This better shows which matchers are actually implemented.
2019-03-31 10:48:00 -06:00
Michael Miller
785f2ef2dd Missing doc 2019-03-30 18:38:06 -06:00
Michael Miller
2ea69d2355 Add spec for array matcher 2019-03-30 18:38:06 -06:00
Michael Miller
27ec27a3f3 Add array matcher 2019-03-30 18:38:06 -06:00
Michael Miller
cd60fae157 Add respond_to matcher 2019-03-28 23:20:32 -06:00