From fc15ab6b664b8f408b317f262be47efe19415f9f Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Thu, 9 May 2019 22:29:29 +0300 Subject: [PATCH] Fix blank lines produced by MultipleSubjects cop Previously, an example group like: describe 'hello there' do subject { 1 } subject { 2 } subject { 3 } end was autocorrected to: describe 'hello there' do subject { 3 } end (notice whitespace and redundant newlines) resulting in unnecessary blank lines. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 338bb6c0..a267225a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Fixed `RSpec/ContextWording` missing `context`s with metadata. ([@pirj][]) * Fix `FactoryBot/AttributeDefinedStatically` not working with an explicit receiver. ([@composerinteralia][]) * Add `RSpec/Dialect` enforces custom RSpec dialects. ([@gsamokovarov][]) +* Fix redundant blank lines in `RSpec/MultipleSubjects`'s autocorrect. ([@pirj][]) ## 1.32.0 (2019-01-27)