gitlab-org--gitlab-foss/spec/support/helpers/reload_helpers.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
204 B
Ruby
Raw Normal View History

# 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