Suppress FactoryBot warnings

See also https://robots.thoughtbot.com/deprecating-static-attributes-in-factory_bot-4-11

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-09-13 16:35:24 +09:00
parent 94340ec3c1
commit 881b357c77
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
3 changed files with 8 additions and 8 deletions

View File

@ -3,9 +3,9 @@ FactoryBot.define 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"
variant { "fluentd_gem" }
log_file { dir + "/fluentd.log" }
pid_file { dir + "/fluentd.pid" }
config_file { dir + "/fluentd.conf" }
end
end

View File

@ -2,7 +2,7 @@
FactoryBot.define do
factory :plugin do
gem_name "fluent-plugin-dummy"
version "1.2.3"
gem_name { "fluent-plugin-dummy" }
version { "1.2.3" }
end
end

View File

@ -1,6 +1,6 @@
FactoryBot.define do
factory :user do
name "admin"
password "changeme"
name { "admin" }
password { "changeme" }
end
end