lib/refinery/testing.rb in refinerycms-testing-4.0.1 vs lib/refinery/testing.rb in refinerycms-testing-4.0.2
- old
+ new
@@ -1,8 +1,8 @@
require 'refinerycms-core'
require 'rspec-rails'
-require 'factory_girl'
+require 'factory_bot'
require 'rails-controller-testing'
module Refinery
autoload :TestingGenerator, 'generators/refinery/testing/testing_generator'
@@ -15,14 +15,14 @@
# Load the factories of all currently loaded extensions
def load_factories
Refinery.extensions.each do |extension_const|
if extension_const.respond_to?(:factory_paths)
extension_const.send(:factory_paths).each do |path|
- FactoryGirl.definition_file_paths << path
+ FactoryBot.definition_file_paths << path
end
end
end
- FactoryGirl.find_definitions
+ FactoryBot.find_definitions
end
end
require 'refinery/testing/railtie'