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:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-02 18:06:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-02 18:06:12 +0300
commit4f4dcd3c5d7a15b7eab5fa28e27482fa68c750a3 (patch)
tree75e1d73289b774a909461007406eb22b33989265 /spec/spec_helper.rb
parent2cf5eb1498d6613523b39a829eb00f76df17e781 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ebfdc1bab44..d6c326764d1 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -350,6 +350,10 @@ FactoryBot::SyntaxRunner.class_eval do
include RSpec::Mocks::ExampleMethods
end
+# Use FactoryBot 4.x behavior:
+# https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#associations
+FactoryBot.use_parent_strategy = false
+
ActiveRecord::Migration.maintain_test_schema!
Shoulda::Matchers.configure do |config|