diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d459f29..761716a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +- Updates Rubocop::Cop code to comply with most modern API. ([@aseroff][]) + ## 1.4.2 (2024-09-03) 🗓️ - Ignore default scopes in `ActiveRecord::Base#refind`. ([@palkan][]) diff --git a/lib/test_prof/factory_doctor.rb b/lib/test_prof/factory_doctor.rb index 1d4c1f23..9c564f28 100644 --- a/lib/test_prof/factory_doctor.rb +++ b/lib/test_prof/factory_doctor.rb @@ -105,9 +105,10 @@ def result # Do not analyze code within the block def ignore @ignored = true - yield + res = yield ensure @ignored = false + res end def ignore!