About

This page contains a single entry from the blog posted on March 31, 2009 5:42 PM.

The previous post in this blog was Neue Dynamime-Version.

The next post in this blog is Der Serverschrank ist da!.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.31

« Neue Dynamime-Version | Main | Der Serverschrank ist da! »

Der Rails 2.3-Murks

Hier ein paar Notizen, die heute bei der Migration einer "enterprisey"-Rails-2.1-Anwendung auf Rails 2.3.2 entstanden sind. Vielleicht dienen sie dem einen oder anderen als kleine Hilfe:

  • ActionController::AbstractRequest doesn't exist anymore
  • relative_url_root has moved to ActionController::Base
  • Test Helpers must now ALL inherit from ActiveSupport::TestCase instead of e.g. Test::Unit::TestCase
  • instead of accessing/subclassing ActionController::AbstractRequest in tests etc, use ActionController::Request
  • String#truncate(str, len, omit) is now String#truncate(str, :length => len, :omission => omit)
  • ActionController::AbstractRequest.parse_query_parameters is now Rack::Utils.parse_query
  • to be able to use fixture_file_upload, post, get etc. in (functional) tests, ActionController::TestProcess has to be included in the test case
  • ActionController::TestCase::Assertions has to be included into ActiveSupport::TestCase to enable e.g. assert_redirected_to
  • request.headers['type'] is now empty in tests -- use request.headers['Content-Type'] instead.

Diese Liste wird sicherlich noch erweitert werden, wir sind ja erst am Anfang der Migration...

TrackBack

TrackBack URL for this entry:
http://www.innoq.com/movabletype/mt-tb.cgi/3085

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)