Sha256: 910955ab0e0784f148f0ac308e200eab1770b7af803a3120132dfac1536cbc2e
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../../test/dummy/config/environment.rb", __FILE__) ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)] ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__) require "rails/test_help" require "minitest/rails" require "minitest/rails/capybara" require 'minitest/rg' # Filter out Minitest backtrace while allowing backtrace from other libraries # to be shown. Minitest.backtrace_filter = Minitest::BacktraceFilter.new # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) ActiveSupport::TestCase.fixtures :all end Rails.application.load_generators # this is placed here so we can test form components with # namespaced modules without adding extra namespaced models # to our dummy app module ExampleEngine class Widget < ::Widget belongs_to :category, class_name: 'ExampleEngine::Category' end class Category < ::Category has_many :widgets, class_name: 'ExampleEngine::Widget' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
express_admin-1.2.1 | test/test_helper.rb |
express_admin-1.2.0 | test/test_helper.rb |