Sha256: 88c7de0e40c73e7bb715c271cff04ecc7027113c0911e5ba29923b956a90446e

Contents?: true

Size: 1.53 KB

Versions: 21

Compression:

Stored size: 1.53 KB

Contents

# encoding: utf-8
ENV["RAILS_ENV"] = "test"

require 'test/unit'
# You can use "rake test AR_VERSION=2.0.5" to test against 2.0.5, for example.
# The default is to use the latest installed ActiveRecord.
if ENV["AR_VERSION"]
  gem 'activerecord', "#{ENV["AR_VERSION"]}"
  gem 'actionpack', "#{ENV["AR_VERSION"]}"
  gem 'activesupport', "#{ENV["AR_VERSION"]}"
end
require 'rubygems'
require 'active_record'
require 'action_controller'
require 'action_view/test_case'
require 'action_mailer'
require 'active_support'
require 'initializer'
ActionController::Base::logger = ActiveSupport::BufferedLogger.new(Tempfile.new('log').path)

RAILS_ROOT = File.join(File.dirname(__FILE__), '../../../..')
Rails.configuration = Rails::Configuration.new

require 'shoulda'
require 'shoulda/rails'
require 'mocha'
begin
  require 'redgreen'
rescue LoadError
end

ActiveSupport::Dependencies.load_paths = %w(test/models test/controllers lib ../active_scaffold/lib).map {|dir| File.dirname(__FILE__) + "/../#{dir}"}
$:.unshift *ActiveSupport::Dependencies.load_paths

require File.join(File.dirname(__FILE__), '../../active_scaffold/environment')
require 'sortable'

ActionController::Routing::Routes.draw do |map|
  map.root :controller => 'home'
  map.resources :sortable_models, :active_scaffold => true
  map.resources :auto_models, :active_scaffold => true
  map.resources :models, :active_scaffold => true
end

ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"
silence_stream(STDOUT) do
  load(File.dirname(__FILE__) + "/schema.rb")
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
active_scaffold_sortable-3.2.12 test/test_helper.rb
active_scaffold_sortable-3.2.11 test/test_helper.rb
active_scaffold_sortable-3.2.10 test/test_helper.rb
active_scaffold_sortable-3.2.9 test/test_helper.rb
active_scaffold_sortable-3.2.8 test/test_helper.rb
active_scaffold_sortable-3.2.7 test/test_helper.rb
active_scaffold_sortable-3.2.6 test/test_helper.rb
active_scaffold_sortable-3.2.5 test/test_helper.rb
active_scaffold_sortable-3.2.4 test/test_helper.rb
active_scaffold_duplicate-1.0.1 test/test_helper.rb
active_scaffold_sortable-3.2.3 test/test_helper.rb
active_scaffold_sortable-3.2.2 test/test_helper.rb
active_scaffold_sortable-3.2.1 test/test_helper.rb
active_scaffold_duplicate-1.0.0 test/test_helper.rb
active_scaffold_sortable-3.2.0 test/test_helper.rb
active_scaffold_sortable-3.1.2 test/test_helper.rb
active_scaffold_sortable-3.1.1 test/test_helper.rb
active_scaffold_sortable-3.1.0 test/test_helper.rb
active_scaffold_sortable-3.0.2 test/test_helper.rb
active_scaffold_sortable_vho-3.0.1 test/test_helper.rb