Deprecate current behavior of pending blocks

This commit is contained in:
Michael Miller 2021-06-11 18:55:56 -06:00
parent 420f69f56b
commit 4f2df78c34
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
2 changed files with 4 additions and 0 deletions

View file

@ -29,6 +29,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Prevent usage of reserved keywords in DSL (such as `initialize`).
- Other minor internal improvements and cleanup.
### Deprecated
- `pending` blocks will behave differently in v0.11.0. They will mimic RSpec in that they _compile and run_ the block expecting it to fail. Use a `skip` (or `xit`) block instead to prevent compiling the example.
### Removed
- Removed one-liner it syntax without braces (block).

View file

@ -130,6 +130,7 @@ module Spectator::DSL
define_example :specify
@[Deprecated("Behavior of pending blocks will change in Spectator v0.11.0. Use `skip` instead.")]
define_pending_example :pending
define_pending_example :skip