Sha256: 65152927e49341931740344249b895506fbf09d2cf355c3335510fa8abaaa4c4

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 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|
  ActiveRecord::FixtureSet.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

2 entries across 2 versions & 1 rubygems

Version Path
cbac-0.8.0 test/test_helper.rb
cbac-0.7.0 test/test_helper.rb