From 616cc4ab52a1fe8ac835afddaf0ff418d0ffab3a Mon Sep 17 00:00:00 2001 From: Mateusz L Date: Thu, 7 Mar 2024 12:47:12 +0000 Subject: [PATCH] Add changelog for 7.0.1 --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc8e8944..c13b6bbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### 7.0.1 + +* fix(RSpec): conditionally adds `--require rails_helper` to cli arguments of `KnapsackPro::Runners::Queue::RSpecRunner`. Version 7.0.0 introduced some fundamental changes, namely fetching, loading and running batches of specs **after** executing suite hooks, so that such hooks are only ran once, not before every batch. This results in a situation where if `rails_helper` is only required in spec files, which is the RSpec default, instead of e.g. in `.rspec`, then some `before(:suite)` hooks, e.g. defined by gems, are registered after suite hooks had already been executed by the test suite. To compare, RSpec loads all the spec files **before** executing `before(:suite)` hooks. + +PR with the above changes: https://github.com/KnapsackPro/knapsack_pro-ruby/pull/243 + +https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v7.0.0...v7.0.1 + ### 7.0.0 * __(breaking change)__ RSpec in Queue Mode: