debian-mirror-gitlab/spec/support/helpers/reload_helpers.rb
2023-04-23 21:23:45 +05:30

12 lines
196 B
Ruby

# frozen_string_literal: true
module ReloadHelpers
def reload_models(*models)
models.compact.map(&:reload)
end
def subject_and_reload(...)
subject
reload_models(...)
end
end