A platform for community discussion. Free, open, simple.
DEV: Remove unused helper (#39661)
Jarek Radosz53f689d0a74b
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rbindex b05b3a84b56..43838b2ddda 100644--- a/spec/support/helpers.rb+++ b/spec/support/helpers.rb@@ -335,17 +335,6 @@ module HelpersSiteSetting.public_send("#{plugin.enabled_site_setting}=", true)end- def try_until_success(timeout: 3, frequency: 0.01)- start ||= Time.zone.now- backoff ||= frequency- yield- rescue RSpec::Expectations::ExpectationNotMetError- raise if Time.zone.now >= start + timeout.seconds- sleep backoff- backoff += frequency- retry- end-def mock_upcoming_change_metadata(metadata)# Without ||= here nested blocks would further mutate the instance var so# resetting in clear_mocked_upcoming_change_metadata would not work.