From 4f2df78c34eff568e8f1e573afcfd577a1c9f808 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Fri, 11 Jun 2021 18:55:56 -0600 Subject: [PATCH] Deprecate current behavior of pending blocks --- CHANGELOG.md | 3 +++ src/spectator/dsl/examples.cr | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee0dd40..955e152 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/src/spectator/dsl/examples.cr b/src/spectator/dsl/examples.cr index 17bfb96..17619b7 100644 --- a/src/spectator/dsl/examples.cr +++ b/src/spectator/dsl/examples.cr @@ -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