Sha256: a04945dc3fb2930bd6bea05efe9da02df3dcabdf60742d99b64f06f3a9c7e6a8

Contents?: true

Size: 1.32 KB

Versions: 14

Compression:

Stored size: 1.32 KB

Contents

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

require 'minitest/autorun'
# 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 'rails'
require 'active_scaffold'
require 'active_scaffold_sortable'

require 'mocha/setup'

#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/lib/active_scaffold')
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

14 entries across 14 versions & 1 rubygems

Version Path
active_scaffold_sortable-3.6.0 test/test_helper.rb
active_scaffold_sortable-3.5.0 test/test_helper.rb
active_scaffold_sortable-3.4.0 test/test_helper.rb
active_scaffold_sortable-3.3.10 test/test_helper.rb
active_scaffold_sortable-3.3.8 test/test_helper.rb
active_scaffold_sortable-3.3.7 test/test_helper.rb
active_scaffold_sortable-3.3.6 test/test_helper.rb
active_scaffold_sortable-3.3.5 test/test_helper.rb
active_scaffold_sortable-3.3.4 test/test_helper.rb
active_scaffold_sortable-3.3.3 test/test_helper.rb
active_scaffold_sortable-3.3.2 test/test_helper.rb
active_scaffold_sortable-3.3.1 test/test_helper.rb
active_scaffold_sortable-3.3.0 test/test_helper.rb
active_scaffold_sortable-3.2.13 test/test_helper.rb