diff --git a/spec/factories/fluentd.rb b/spec/factories/fluentd.rb index ceccc65..aff33b9 100644 --- a/spec/factories/fluentd.rb +++ b/spec/factories/fluentd.rb @@ -1,4 +1,4 @@ -FactoryGirl.define do +FactoryBot.define do factory :fluentd do dir = Rails.root.join("tmp/fluentd-test").to_s FileUtils.mkdir_p(dir) diff --git a/spec/factories/plugins.rb b/spec/factories/plugins.rb index 94e9cb5..010699b 100644 --- a/spec/factories/plugins.rb +++ b/spec/factories/plugins.rb @@ -1,6 +1,6 @@ -# Read about factories at https://github.com/thoughtbot/factory_girl +# Read about factories at https://github.com/thoughtbot/factory_bot -FactoryGirl.define do +FactoryBot.define do factory :plugin do gem_name "fluent-plugin-dummy" version "1.2.3" diff --git a/spec/factories/user.rb b/spec/factories/user.rb index d691850..e5f5e63 100644 --- a/spec/factories/user.rb +++ b/spec/factories/user.rb @@ -1,4 +1,4 @@ -FactoryGirl.define do +FactoryBot.define do factory :user do name "admin" password "changeme" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7364240..a57ff68 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -27,8 +27,8 @@ RSpec.configure do |config| # config.mock_with :flexmock # config.mock_with :rr - # Syntax sugar to use the FactoryGirl methods directly instead FactoryGirl.create ete. - config.include FactoryGirl::Syntax::Methods + # Syntax sugar to use the FactoryBot methods directly instead FactoryBot.create ete. + config.include FactoryBot::Syntax::Methods config.include LoginMacro config.include JavascriptMacro config.include StubDaemon