Sha256: e1d558a575ec5780a35445b5e282d4c7b9d12bb0015565feee5682bcc53e3ecf

Contents?: true

Size: 850 Bytes

Versions: 4

Compression:

Stored size: 850 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, Analytics::Rails::ActionView::Base

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
analytics-rails-0.2.1 test/test_helper.rb
analytics-rails-0.2.0 test/test_helper.rb
analytics-rails-0.1.1 test/test_helper.rb
analytics-rails-0.1.0 test/test_helper.rb