From 80e2f400428c60f46a15b39fe973e164a440e027 Mon Sep 17 00:00:00 2001 From: Antonio Facciolo Date: Thu, 16 Nov 2017 15:24:24 +0100 Subject: [PATCH] update dependencies, update to FactoryBot --- lib/solidus_catalog_mode/factories.rb | 2 +- solidus_catalog_mode.gemspec | 18 +++++++++--------- spec/spec_helper.rb | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/solidus_catalog_mode/factories.rb b/lib/solidus_catalog_mode/factories.rb index bfd0de3..132643c 100644 --- a/lib/solidus_catalog_mode/factories.rb +++ b/lib/solidus_catalog_mode/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_catalog_mode.gemspec b/solidus_catalog_mode.gemspec index 6d4635c..e0653c2 100644 --- a/solidus_catalog_mode.gemspec +++ b/solidus_catalog_mode.gemspec @@ -18,15 +18,15 @@ Gem::Specification.new do |s| s.add_dependency 'solidus_core', '~> 2.3' - s.add_development_dependency 'capybara' - s.add_development_dependency 'poltergeist' - 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 'rspec-rails' + s.add_development_dependency 'capybara', '~> 0' + s.add_development_dependency 'poltergeist', '~> 0' + s.add_development_dependency 'coffee-rails', '~> 0' + s.add_development_dependency 'sass-rails', '~> 0' + s.add_development_dependency 'database_cleaner', '~> 0' + s.add_development_dependency 'factory_bot', '~> 0' + s.add_development_dependency 'rspec-rails', '~> 0' s.add_development_dependency 'rubocop', '0.37.2' s.add_development_dependency 'rubocop-rspec', '1.4.0' - s.add_development_dependency 'simplecov' - s.add_development_dependency 'sqlite3' + s.add_development_dependency 'simplecov', '~> 0' + s.add_development_dependency 'sqlite3', '~> 0' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2f9157c..0fa5160 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -34,7 +34,7 @@ require 'solidus_catalog_mode/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!