Sha256: e4c52f28a39ced0c13f2174a6880887331b291b962b3e88a6cb975589ab66c32

Contents?: true

Size: 1 KB

Versions: 3

Compression:

Stored size: 1 KB

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"

require "minitest/utils"

class SampleApplication < ::Rails::Application
  config.api = true
  config.root = __dir__ + "/../spec/support/app"
  config.active_support.deprecation = :log
  config.eager_load = false
end

SampleApplication.initialize!
require "rails/test_help"

ActiveRecord::Migration.verbose = true
ActiveRecord::Base.establish_connection ENV["DATABASE_URL"]
load __dir__ + "/../spec/support/app/db/schema.rb"

module ActiveSupport
  class TestCase
    self.use_instantiated_fixtures = true
  end
end

require "factory_bot/preload"
require __dir__ + "/../spec/support/factories"

FactoryBot::Preload.minitest

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
factory_bot-preload-0.2.2 test/test_helper.rb
factory_bot-preload-0.2.1 test/test_helper.rb
factory_bot-preload-0.2.0 test/test_helper.rb