Sha256: 9491af63f064f2638e88770a19c6669408ac915e291dda0f510c6c46fff69975
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
# Copyright 2010 Bert Meerman # Setup ActiveRecord and ActiveSupport ENV["RAILS_ENV"] ||= "test" RAILS_ENV ||= "test" require "active_record" require "active_record/fixtures" require "yaml" require "erb" require "active_support" ActiveRecord::Base.establish_connection( 'adapter' => 'sqlite3', 'database' => 'test/db/test.sqlite3' ) fixture_files = Dir.glob(File.join(File.dirname(__FILE__), "fixtures", "*.yml")) fixture_files.each do |filename| Fixtures.create_fixtures('test/fixtures', File.basename(filename, ".*")) end RAILS_ROOT ||= "." # Setup cbac configuration require "cbac" class ActiveSupport::TestCase include Cbac session = Hash.new session[:currentuser] = 1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cbac-0.6.3 | test/test_helper.rb |
cbac-0.6.1 | test/test_helper.rb |
cbac-0.6.0 | test/test_helper.rb |