Sha256: b8e151007869bbee11c90af1664b2882e92f3e40dfbe423d4a1dcebaf421cfb8

Contents?: true

Size: 843 Bytes

Versions: 6

Compression:

Stored size: 843 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, Abilities::ActionView::Base

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
abilities-0.1.2 test/test_helper.rb
abilities-0.1.0 test/test_helper.rb
abilities-0.0.4 test/test_helper.rb
abilities-0.0.3 test/test_helper.rb
abilities-0.0.2 test/test_helper.rb
abilities-0.0.1 test/test_helper.rb