Skip to content

Remove usage of deprecated implicit block expectation from specs#677

Merged
andrehjr merged 1 commit intomainfrom
fix-spec-deprecations
Mar 4, 2022
Merged

Remove usage of deprecated implicit block expectation from specs#677
andrehjr merged 1 commit intomainfrom
fix-spec-deprecations

Conversation

@andrehjr
Copy link
Member

@andrehjr andrehjr commented Mar 4, 2022

For example:

  The implicit block expectation syntax is deprecated, you should pass a block rather than an argument to `expect` to use the provided block expectation matcher or the matcher must implement `supports_value_expectations?`. e.g  `expect { value }.to raise Exception` not `expect(value).to raise Exception`

Also configured rspec to raise deprecations as errors.

@andrehjr andrehjr merged commit a663a33 into main Mar 4, 2022
@andrehjr andrehjr deleted the fix-spec-deprecations branch March 4, 2022 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant