diff --git a/spec/factories/feedback_review_factory.rb b/spec/factories/feedback_review_factory.rb index 7b9dbbf8..a7ec32f0 100644 --- a/spec/factories/feedback_review_factory.rb +++ b/spec/factories/feedback_review_factory.rb @@ -1,4 +1,4 @@ -FactoryGirl.define do +FactoryBot.define do factory :feedback_review, class: Spree::FeedbackReview do user review diff --git a/spec/factories/review_factory.rb b/spec/factories/review_factory.rb index c5773563..1e223a27 100644 --- a/spec/factories/review_factory.rb +++ b/spec/factories/review_factory.rb @@ -1,4 +1,4 @@ -FactoryGirl.define do +FactoryBot.define do factory :review, class: Spree::Review do name { generate(:random_email) } title { generate(:random_string) } diff --git a/spec/support/factory_girl.rb b/spec/support/factory_girl.rb index f2784a54..db01c165 100644 --- a/spec/support/factory_girl.rb +++ b/spec/support/factory_girl.rb @@ -1,7 +1,7 @@ -require 'factory_girl' +require 'factory_bot' -FactoryGirl.find_definitions +FactoryBot.find_definitions RSpec.configure do |config| - config.include FactoryGirl::Syntax::Methods + config.include FactoryBot::Syntax::Methods end diff --git a/spree_reviews.gemspec b/spree_reviews.gemspec index 9dd61085..7802b329 100644 --- a/spree_reviews.gemspec +++ b/spree_reviews.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'database_cleaner' s.add_development_dependency 'poltergeist' s.add_development_dependency 'rspec-rails' - s.add_development_dependency 'factory_girl' + s.add_development_dependency 'factory_bot' s.add_development_dependency 'sqlite3' s.add_development_dependency 'simplecov' s.add_development_dependency 'coffee-rails'