spec/spec_helper.rb in localtower-0.3.1 vs spec/spec_helper.rb in localtower-0.4.0

- old
+ new

@@ -15,41 +15,32 @@ #============================ ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rspec/rails' -require 'factory_girl' +require 'factory_bot' -# require 'simplecov' -# Dir["#{File.join(File.dirname(__FILE__), '..')}/lib/**/*.rb"].each {|file| load file } - -# SimpleCov.start do -# add_group 'Lib', '../lib' -# add_group 'App', '../app' -# end - Rails.application.eager_load! Rails.backtrace_cleaner.remove_silencers! RSpec.configure do |config| - config.include FactoryGirl::Syntax::Methods + config.include FactoryBot::Syntax::Methods config.mock_with :rspec config.use_transactional_fixtures = false config.infer_base_class_for_anonymous_controllers = true config.order = 123 # config.order = 'random' config.before(:suite) do - FactoryGirl.find_definitions + FactoryBot.find_definitions end config.before(:all) do clean_files end config.after(:all) do clean_files end end -