Commit Graph

243 Commits

Author SHA1 Message Date
Michael Miller cacca99c0b Formatting 2020-01-20 20:32:14 -07:00
Michael Miller 721425c3c8 Run deferred expectations after all hooks 2020-01-20 20:15:49 -07:00
Michael Miller 1e3d89884b Add some RSpec docs tests for hooks 2020-01-20 20:11:19 -07:00
Michael Miller 60f1c3091b Allow `be` matcher to be used on structs 2020-01-19 22:39:21 -07:00
Michael Miller 3d08949c94 Add helper method specs from RSpec docs 2020-01-19 22:24:28 -07:00
Michael Miller b1984b343a Add `should` keywords to examples
Allows short-hand like:
it { should be_empty }
2020-01-19 22:12:06 -07:00
Michael Miller 8381c08b05 Add subject specs 2020-01-19 22:05:38 -07:00
Michael Miller 64f6456935 Merge branch 'specs' 2020-01-19 09:52:41 -07:00
Michael Miller 15f211c4b6 Add `it_fails` to handle expected failures 2020-01-17 22:41:38 -07:00
Michael Miller e3a4dedfc6 Add RSpec `respond_to` matcher spec 2020-01-17 22:14:25 -07:00
Michael Miller ed48b80d58 Add RSpec `raise_error` matcher spec 2020-01-17 21:58:29 -07:00
Michael Miller 596f7e87c8 Formatting 2020-01-17 09:27:48 -07:00
Arina Shmeleva cf448576e2 Add test for subject 2020-01-17 00:49:59 +03:00
Michael Miller 6a0a73ca76 Add RSpec `match` matcher spec 2020-01-06 23:05:31 -07:00
Michael Miller b433511201 Add RSpec `include/contain` matcher spec 2020-01-06 22:51:47 -07:00
Michael Miller 6ad861365c Add RSpec `have_attributes` matcher spec 2020-01-06 22:33:52 -07:00
Michael Miller f23141b3e1 Add RSpec `start_with` and `end_with` matchers specs 2020-01-06 22:19:09 -07:00
Michael Miller 7868755eee Add RSpec `cover` matcher spec 2020-01-05 23:02:09 -07:00
Michael Miller 5bbaad36d2 Add RSpec `contain_exactly` matcher spec 2020-01-05 11:42:43 -07:00
Michael Miller 26656b7c12 Add RSpec `change` matcher spec 2020-01-05 10:35:35 -07:00
Michael Miller e17435f6e8 Add RSpec `be_within` matcher spec 2020-01-05 10:28:21 -07:00
Michael Miller 1f7ac79c78 Add RSpec `be` matchers spec 2020-01-05 00:29:10 -07:00
Michael Miller 80c4e97c29 Add RSpec `all` matchers spec 2020-01-05 00:12:57 -07:00
Michael Miller 42ef2cc904 Add RSpec type matchers spec 2020-01-04 12:47:23 -07:00
Michael Miller 2538f3a9a4 Add RSpec predicate matchers spec 2020-01-04 09:58:53 -07:00
Michael Miller 7f8d9d5ef3 Add comparison tests from RSpec docs 2020-01-02 20:00:51 -07:00
Michael Miller 9f91e3a266 Add tests for equality matcher 2020-01-01 21:58:37 -07:00
Michael Miller 0a6493964d Allow auto-run of Spectator
Needed to test Spectator with itself.
2020-01-01 21:50:08 -07:00
Michael Miller 2c400950a4 Remove specs since they're mostly invalidated by the refactor 2019-09-26 20:52:26 -06:00
Michael Miller 43dc106c18 Add return type annotations
Addresses Crystal compiler warning about abstract method return types.
2019-09-23 20:32:21 -06:00
Michael Miller adbfb7da7c Use integer division - Crystal 0.31.0 change 2019-09-23 19:38:15 -06:00
Michael Miller cede88bf0c Update spec with new arguments 2019-08-17 08:24:06 -06:00
Michael Miller a54e406fec Clean up expectation specs
Removed tests that are no longer valid or non-trivial to update.
2019-08-09 15:32:22 -06:00
Michael Miller 251e3b8774 Remove specs for matchers
Will replace with Spectator-based tests later.
2019-08-09 15:16:01 -06:00
Michael Miller 19d52ff02b Add unordered array matcher 2019-06-12 15:35:33 -06:00
Michael Miller 0eaf8efcc6 Fix copy/paste fail 2019-06-12 13:57:33 -06:00
Michael Miller efde29c90e Add have_size_of matcher 2019-06-09 12:45:49 -06:00
Michael Miller bb2b834662 Add have_size matcher 2019-06-09 12:44:46 -06:00
Michael Miller 0164d2973f Fix predicate tests and add new ones for have_ variant 2019-06-01 23:39:23 -06:00
Michael Miller e234ac2f31 Test case to ensure runtime type is reported 2019-06-01 20:55:29 -06:00
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 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
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 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 365bd1ec2f Fix failing tests 2019-04-06 12:48:41 -06:00
Michael Miller 2ea69d2355 Add spec for array matcher 2019-03-30 18:38:06 -06:00