Sha256: 1e4d4c765ce876b95d3f4e30f3704936acdc44cb657f06c0fa803c7f1ca7ebb4
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 Bytes
Contents
ENV["RAILS_ENV"] = "test" ENV["BUNDLE_GEMFILE"] = File.dirname(__FILE__) + "/../Gemfile" ENV["DATABASE_URL"] = "sqlite3::memory:" require "bundler/setup" require "rails/all" require "minitest/utils" class SampleApplication < ::Rails::Application 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
factory_bot-preload-0.1.1 | test/test_helper.rb |
factory_bot-preload-0.1.0 | test/test_helper.rb |