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 /test/fixtures | |
| 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 'test/fixtures')
| -rw-r--r-- | test/fixtures/nodes.yml | 3 | ||||
| -rw-r--r-- | test/fixtures/users.yml | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/fixtures/nodes.yml b/test/fixtures/nodes.yml index a0e185b..9ca325e 100644 --- a/test/fixtures/nodes.yml +++ b/test/fixtures/nodes.yml | |||
| @@ -41,6 +41,5 @@ fourth_child: | |||
| 41 | lft: 8 | 41 | lft: 8 |
| 42 | rgt: 9 | 42 | rgt: 9 |
| 43 | parent_id: 1 | 43 | parent_id: 1 |
| 44 | draft_id: 103 | ||
| 45 | slug: fourth_child | 44 | slug: fourth_child |
| 46 | unique_name: fourth_child \ No newline at end of file | 45 | unique_name: fourth_child |
diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index a62b350..7276bcb 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml | |||
| @@ -4,7 +4,7 @@ quentin: | |||
| 4 | email: quentin@example.com | 4 | email: quentin@example.com |
| 5 | salt: cf993996a70d31f924aff17a5f997722cb6ec2dd | 5 | salt: cf993996a70d31f924aff17a5f997722cb6ec2dd |
| 6 | crypted_password: 11c672158b0eb6e8c91c438b3eb844902308b138 # 'monkey' | 6 | crypted_password: 11c672158b0eb6e8c91c438b3eb844902308b138 # 'monkey' |
| 7 | created_at: <%= 5.days.ago.to_s :db %> | 7 | created_at: 2024-01-01 00:00:00 |
| 8 | 8 | ||
| 9 | aaron: | 9 | aaron: |
| 10 | id: 2 | 10 | id: 2 |
| @@ -12,6 +12,6 @@ aaron: | |||
| 12 | email: aaron@example.com | 12 | email: aaron@example.com |
| 13 | salt: 5be6f9cdd04fd7ab3c91cd32a5334ba2339b8005 | 13 | salt: 5be6f9cdd04fd7ab3c91cd32a5334ba2339b8005 |
| 14 | crypted_password: 740a48caf7dd5ff11318d812d57c0a0928cfbc12 # 'monkey' | 14 | crypted_password: 740a48caf7dd5ff11318d812d57c0a0928cfbc12 # 'monkey' |
| 15 | created_at: <%= 1.days.ago.to_s :db %> | 15 | created_at: 2024-01-02 00:00:00 |
| 16 | admin: true | 16 | admin: true |
| 17 | 17 | ||
