summaryrefslogtreecommitdiff
path: root/vendor/plugins/awesome_nested_set/test/test_helper.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-24 04:13:16 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-24 04:13:16 +0200
commite0a7e0fec760ba12c8067a37e10c96f1f05876e2 (patch)
treed0cf745592a46aee4d4913911fd34c7c24515220 /vendor/plugins/awesome_nested_set/test/test_helper.rb
parent6424e10be5a89f175a74c71c55660412a169b8b8 (diff)
Stage 1 complete: Rails 2.3.5 to Rails 3.2.22.5 upgrade
- Converted plugins to gems (Gemfile) - Updated config structure (application.rb, boot.rb, environment.rb) - Converted routes to Rails 3 DSL - Converted named_scope to scope throughout models - Converted find(:all, :conditions) to where() chains - Fixed has_many :order to use ordering scope - Updated session store and secret token configuration - Fixed exception_notification middleware configuration - Patched Ruby 2.4 / Rails 3.2 incompatibilities: - Integer/Float duration arithmetic (ActiveSupport) - Arel visit_Integer for PostgreSQL adapter - create_database String/Integer coercion - ActionController consider_all_requests_local - Migrated taggings schema for acts-as-taggable-on - Replaced dynamic_form gem with custom form_error_messages helper - Fixed Rails 3 block helper syntax (form_for, form_tag, fields_for) - Fixed admin layout yield - Updated test suite for Rails 3 APIs
Diffstat (limited to 'vendor/plugins/awesome_nested_set/test/test_helper.rb')
-rw-r--r--vendor/plugins/awesome_nested_set/test/test_helper.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/plugins/awesome_nested_set/test/test_helper.rb b/vendor/plugins/awesome_nested_set/test/test_helper.rb
deleted file mode 100644
index 05d88556..00000000
--- a/vendor/plugins/awesome_nested_set/test/test_helper.rb
+++ /dev/null
@@ -1,29 +0,0 @@
1$:.unshift(File.dirname(__FILE__) + '/../lib')
2plugin_test_dir = File.dirname(__FILE__)
3RAILS_ROOT = plugin_test_dir
4
5require 'rubygems'
6require 'test/unit'
7require 'multi_rails_init'
8require 'test_help'
9
10require plugin_test_dir + '/../init.rb'
11
12TestCaseClass = ActiveSupport::TestCase rescue Test::Unit::TestCase
13
14ActiveRecord::Base.logger = Logger.new(plugin_test_dir + "/debug.log")
15
16ActiveRecord::Base.configurations = YAML::load(IO.read(plugin_test_dir + "/db/database.yml"))
17ActiveRecord::Base.establish_connection(ENV["DB"] || "sqlite3mem")
18ActiveRecord::Migration.verbose = false
19load(File.join(plugin_test_dir, "db", "schema.rb"))
20
21Dir["#{plugin_test_dir}/fixtures/*.rb"].each {|file| require file }
22
23class TestCaseClass #:nodoc:
24 self.fixture_path = File.dirname(__FILE__) + "/fixtures/"
25 self.use_transactional_fixtures = true
26 self.use_instantiated_fixtures = false
27
28 fixtures :categories, :notes, :departments
29end