Sha256: 481922342fe5de828333e5351e41037d291f17ea3d62d027d8e0dfef95746a08

Contents?: true

Size: 1016 Bytes

Versions: 2

Compression:

Stored size: 1016 Bytes

Contents

require 'rubygems'
require 'activesupport'
require 'spec'
require 'activerecord'
require 'action_controller'

require 'action_controller/test_process'
require 'action_controller/integration'

require 'active_record/fixtures'

require 'rails/version'

require 'spec/rails/matchers'
require 'spec/rails/mocks'

class ApplicationController < ActionController::Base
end

require 'spec/rails/example'

begin
  require 'spec/rails/extensions'
rescue MissingSourceFile
  # it tries to load application.rb 
end

#require 'spec/rails/interop/testcase'

this_dir = File.dirname(__FILE__)

RAILS_ROOT = File.join(this_dir,  "..")

ActiveRecord::Base.logger = Logger.new(this_dir + "/debug.log")

ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => "#{this_dir}/db/test.sqlite3")

load(File.join(this_dir, "db", "schema.rb"))

ActionController::Routing::Routes.draw do |map|
  map.connect ":controller/:action/:id"
end

module Rails
  mattr_accessor :logger
end

Rails.logger = ActiveRecord::Base.logger

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
be9-acl9-0.9.3 spec/spec_helper.rb
be9-acl9-0.9.4 spec/spec_helper.rb