Skip to content
代码片段 群组 项目
提交 12505b9d 编辑于 作者: Gabriel Mazetto's avatar Gabriel Mazetto
浏览文件

Integrate factory_bot development dependency

上级 1193fec8
1 合并请求!2419Fix TanukiBot spec relying on outdated code
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
require "gitlab/backup/cli" require "gitlab/backup/cli"
require 'tmpdir' require 'tmpdir'
require 'fileutils' require 'fileutils'
require 'factory_bot'
# Load spec support code # Load spec support code
Dir['spec/support/**/*.rb'].each { |f| load f } Dir['spec/support/**/*.rb'].each { |f| load f }
......
# frozen_string_literal: true
RSpec.configure do |config|
# Enable FactoryBot syntax
config.include FactoryBot::Syntax::Methods
# Load definitions
config.before(:suite) do
FactoryBot.find_definitions
end
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册