spec/rails_helper.rb in tang-0.0.1 vs spec/rails_helper.rb in tang-0.0.8

- old
+ new

@@ -1,18 +1,20 @@ -require "codeclimate-test-reporter" -CodeClimate::TestReporter.start +# require "codeclimate-test-reporter" +# CodeClimate::TestReporter.start +require 'simplecov' +SimpleCov.start # This file is copied to spec/ when you run 'rails generate rspec:install' ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../tang_app/config/environment', __FILE__) # Prevent database truncation if the environment is production abort("The Rails environment is running in production mode!") if Rails.env.production? require 'spec_helper' require 'rspec/rails' # Add additional requires below this line. Rails is not loaded until this point! -require 'factory_girl_rails' -FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories') -FactoryGirl.find_definitions +require 'factory_bot_rails' +FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories') +FactoryBot.find_definitions # Requires supporting ruby files with custom matchers and macros, etc, in # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are # run as spec files by default. This means that files in spec/support that end # in _spec.rb will both be required and run as specs, causing the specs to be