Sha256: 0a4cff8efc4ed0af1ab38d1bc53aa3d3852c4d0f74a9e1dcab49e77fc952d99d

Contents?: true

Size: 976 Bytes

Versions: 3

Compression:

Stored size: 976 Bytes

Contents

# frozen_string_literal: true

require "simplecov"
SimpleCov.start

ENV["RAILS_ENV"] = "test"
ENV["BUNDLE_GEMFILE"] = File.dirname(__FILE__) + "/../Gemfile"
ENV["DATABASE_URL"] = "sqlite3::memory:"

require "bundler/setup"

require "rails"
require "active_model/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_view/railtie"
require "rails/test_unit/railtie"

module RSpec
  class Application < ::Rails::Application
    config.root = File.dirname(__FILE__) + "/support/app"
    config.active_support.deprecation = :log
    config.eager_load = false
  end
end

RSpec::Application.initialize!
ActiveRecord::Migration.verbose = true
ActiveRecord::Base.establish_connection ENV["DATABASE_URL"]
load File.dirname(__FILE__) + "/support/app/db/schema.rb"

require "rspec/rails"

RSpec.configure do |config|
  config.use_transactional_fixtures = true
end

require "factory_bot/preload"
require File.dirname(__FILE__) + "/support/factories"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
factory_bot-preload-0.2.2 spec/spec_helper.rb
factory_bot-preload-0.2.1 spec/spec_helper.rb
factory_bot-preload-0.2.0 spec/spec_helper.rb