Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/reload_helpers.rb')
-rw-r--r--spec/support/helpers/reload_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/helpers/reload_helpers.rb b/spec/support/helpers/reload_helpers.rb
index 60811e4604f..368ebaaba8a 100644
--- a/spec/support/helpers/reload_helpers.rb
+++ b/spec/support/helpers/reload_helpers.rb
@@ -2,7 +2,7 @@
module ReloadHelpers
def reload_models(*models)
- models.map(&:reload)
+ models.compact.map(&:reload)
end
def subject_and_reload(*models)