diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 04:13:16 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 04:13:16 +0200 |
| commit | e0a7e0fec760ba12c8067a37e10c96f1f05876e2 (patch) | |
| tree | d0cf745592a46aee4d4913911fd34c7c24515220 /vendor/plugins/awesome_nested_set/test/test_helper.rb | |
| parent | 6424e10be5a89f175a74c71c55660412a169b8b8 (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.rb | 29 |
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') | ||
| 2 | plugin_test_dir = File.dirname(__FILE__) | ||
| 3 | RAILS_ROOT = plugin_test_dir | ||
| 4 | |||
| 5 | require 'rubygems' | ||
| 6 | require 'test/unit' | ||
| 7 | require 'multi_rails_init' | ||
| 8 | require 'test_help' | ||
| 9 | |||
| 10 | require plugin_test_dir + '/../init.rb' | ||
| 11 | |||
| 12 | TestCaseClass = ActiveSupport::TestCase rescue Test::Unit::TestCase | ||
| 13 | |||
| 14 | ActiveRecord::Base.logger = Logger.new(plugin_test_dir + "/debug.log") | ||
| 15 | |||
| 16 | ActiveRecord::Base.configurations = YAML::load(IO.read(plugin_test_dir + "/db/database.yml")) | ||
| 17 | ActiveRecord::Base.establish_connection(ENV["DB"] || "sqlite3mem") | ||
| 18 | ActiveRecord::Migration.verbose = false | ||
| 19 | load(File.join(plugin_test_dir, "db", "schema.rb")) | ||
| 20 | |||
| 21 | Dir["#{plugin_test_dir}/fixtures/*.rb"].each {|file| require file } | ||
| 22 | |||
| 23 | class 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 | ||
| 29 | end | ||
