spec/spec_helper.rb in authenticate-0.7.2 vs spec/spec_helper.rb in authenticate-0.7.3

- old
+ new

@@ -10,19 +10,19 @@ require 'rspec/rails' require 'capybara/rails' require 'capybara/rspec' require 'database_cleaner' -require 'factory_girl' +require 'factory_bot' require 'timecop' Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f } Rails.backtrace_cleaner.remove_silencers! DatabaseCleaner.strategy = :truncation -# Load factory girl factories. +# Load factory bot factories. Dir[File.join(File.dirname(__FILE__), 'factories/**/*.rb')].each { |f| require f } # Build test database in spec/dummy/db. There's probably a better way to do this. if defined?(ActiveRecord::Migration.maintain_test_schema!) ActiveRecord::Migration.maintain_test_schema! # rails 4.1+ @@ -33,11 +33,11 @@ if ActiveRecord::VERSION::STRING >= '4.2' && ActiveRecord::VERSION::STRING < '5.0' ActiveRecord::Base.raise_in_transactional_callbacks = true end RSpec.configure do |config| - config.include FactoryGirl::Syntax::Methods + config.include FactoryBot::Syntax::Methods config.infer_spec_type_from_file_location! config.order = :random config.use_transactional_fixtures = true config.expect_with :rspec do |expectations| @@ -52,6 +52,5 @@ DatabaseCleaner.clean # Truncate the database Capybara.reset_sessions! # Forget the (simulated) browser state Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver end end -