Upgrading to Rails 2.3

We just upgraded our app from Rails 2.2.2 to Rails 2.3.2 and were able to get all our tests passing after having ironed out a number of deprecations, upgraded a few plugins, and patched a few others. Here is an outline of the changes we had to make:

- Rails has an issue with tests that issue multiple POST requests. We created a patch for this.

- Changed patch of request object to use new class Rack::Request
- Renamed app/controllers/application.rb to app/controllers/application_controller.rb
- Changed Test::Unit::TestCase in test/test_helper.rb to ActiveSupport::TestCase. Changed Test::Unit::TestCase in test/unit/*.rb to ActiveSupport::TestCase and in test/functional/*.rb to ActionController::TestCase.
- Upgraded will_paginate gem from 2.3.5 to 2.3.8
- Removed session :disabled => true since sessions are lazy loaded now
- Upgraded rspec and rspec-rails to 1.2.0, see http://wiki.github.com/dchelimsky/rspec/configgem-for-rails
- Patched the acts_as_bitfield plugin. The ActiveRecord::Base#attribute_condition method now takes two arguments.
- Added a bunch of new I18n keys:

+  support:
+    array:
+      last_word_connector: “, and ”
+      sentence_connector: and
+      skip_last_comma: false
+      two_words_connector: ” and ”
+      words_connector: “, ”
+  time:
+    am: am
+    formats:
+      default: “%a, %d %b %Y %H:%M:%S %z”
+      long: “%B %d, %Y %H:%M”
+      short: “%d %b %H:%M”
+    pm: pm

- Fixed a failing test related to cookie handling.
- Fixed test of Array#to_sentence that uses different I18n keys now

All in all we spent 2-3 hours or so on the upgrade so it wasn’t too bad, baring any severe issues that we haven’t found yet…

One Comment

  1. Richard
    Posted March 18, 2009 at 9:31 am | Permalink

    Yes, it might be worth mentioning we haven’t deployed 2.3 into production yet. :)

One Trackback

  1. By Comitting to Rails Core - Newsdesk developer blog on March 25, 2009 at 10:46 am

    [...] Newsdesk developer blog Just another WordPress weblog Skip to content AboutAbout « Upgrading to Rails 2.3 [...]

Post a Comment

Your email is never shared. Required fields are marked *

*
*