Sha256: 7847c5a9d3a32d958ef46c64c4713e0ff14f10e8be526a65fc3e8fd07cef1c92

Contents?: true

Size: 846 Bytes

Versions: 4

Compression:

Stored size: 846 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, Fonts::Rails::ActionView::Base

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fonts-rails-0.1.5 test/test_helper.rb
fonts-rails-0.1.4 test/test_helper.rb
fonts-rails-0.1.3 test/test_helper.rb
fonts-rails-0.1.0 test/test_helper.rb