diff --git a/lib/solidus_simple_sale_price/factories.rb b/lib/solidus_simple_sale_price/factories.rb index 68f3c7f..0e45aa6 100644 --- a/lib/solidus_simple_sale_price/factories.rb +++ b/lib/solidus_simple_sale_price/factories.rb @@ -1,4 +1,4 @@ -FactoryGirl.define do +FactoryBot.define do # Define your Spree extensions Factories within this file to enable applications, and other extensions to use and override them. # # Example adding this to your spec_helper will load these Factories for use: diff --git a/solidus_simple_sale_price.gemspec b/solidus_simple_sale_price.gemspec index 5512c85..5b1c247 100644 --- a/solidus_simple_sale_price.gemspec +++ b/solidus_simple_sale_price.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'coffee-rails' s.add_development_dependency 'sass-rails' s.add_development_dependency 'database_cleaner' - s.add_development_dependency 'factory_girl' + s.add_development_dependency 'factory_bot' s.add_development_dependency 'rspec-rails' s.add_development_dependency 'rubocop', '0.54.0' s.add_development_dependency 'rubocop-rspec', '1.4.0' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index bb74e2b..11c9f62 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -34,7 +34,7 @@ require 'solidus_simple_sale_price/factories' RSpec.configure do |config| - config.include FactoryGirl::Syntax::Methods + config.include FactoryBot::Syntax::Methods # Infer an example group's spec type from the file location. config.infer_spec_type_from_file_location!