debian-mirror-gitlab/spec/support/factory_bot.rb
2020-03-09 13:42:32 +05:30

9 lines
272 B
Ruby

# frozen_string_literal: true
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