debian-mirror-gitlab/spec/support/helpers/reload_helpers.rb
2021-06-08 01:23:25 +05:30

12 lines
204 B
Ruby

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