Sha256: a5ceabaed241b55ceb0196ba64af875d87c4df71acb51c907d92d256d1704dfc
Contents?: true
Size: 844 Bytes
Versions: 5
Compression:
Stored size: 844 Bytes
Contents
# Configure Rails Environment ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rails/test_help' Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load fixtures from the engine if ActiveSupport::TestCase.method_defined?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__) end # Load database config = YAML::load(File.read(File.expand_path('../dummy/config/database.yml', __FILE__))) config['test']['adapter'] = 'jdbcsqlite3' if RUBY_PLATFORM == 'java' ActiveRecord::Base.establish_connection(config['test']) load(File.expand_path('../dummy/db/schema.rb', __FILE__)) # Include helpers ActionView::TestCase.send :include, Ads::Rails::ActionView::Base
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ads-rails-0.2.3 | test/test_helper.rb |
ads-rails-0.2.2 | test/test_helper.rb |
ads-rails-0.2.1 | test/test_helper.rb |
ads-rails-0.2.0 | test/test_helper.rb |
ads-rails-0.1.1 | test/test_helper.rb |