mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-06 11:26:10 +02:00
See also https://robots.thoughtbot.com/deprecating-static-attributes-in-factory_bot-4-11 Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
12 lines
280 B
Ruby
12 lines
280 B
Ruby
FactoryBot.define do
|
|
factory :fluentd do
|
|
dir = Rails.root.join("tmp/fluentd-test").to_s
|
|
FileUtils.mkdir_p(dir)
|
|
|
|
variant { "fluentd_gem" }
|
|
log_file { dir + "/fluentd.log" }
|
|
pid_file { dir + "/fluentd.pid" }
|
|
config_file { dir + "/fluentd.conf" }
|
|
end
|
|
end
|