Sha256: cb8c76ffd476d7f7924ce1c1b60e3c5dead24e9727e55d612be5a56f61e342a7
Contents?: true
Size: 949 Bytes
Versions: 3
Compression:
Stored size: 949 Bytes
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require 'yaml' env_file = File.join(Pathname.new(__FILE__).parent.parent, 'config', 'application.yml') YAML.load(File.open(env_file)).each do |key, value| ENV[key.to_s] = value.to_s end if File.exists?(env_file) require File.expand_path("../../test/dummy/config/environment.rb", __FILE__) ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)] require "rails/test_help" # 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 } # Load fixtures from the engine if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../dummy/test/fixtures", __FILE__) ActiveSupport::TestCase.fixtures :all end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
epom_rails-0.4.2 | test/test_helper.rb |
epom_rails-0.4.1 | test/test_helper.rb |
epom_rails-0.3 | test/test_helper.rb |