svenfuchs/routing-filter — pull request #33 by yabawock (2011-12-21 08:59:09+00:00)
Title: Refactor the test suite for Rails 2.3 to 3.2

This is a (huge) bugfix for the test unit setup. The main changes included in this pull request are:

* use appraisal to ease testing different rails versions, setup appraisal to test the latest rails 2.3, 3.0, 3.1 and 3.2 version
* add a matcher for testing the generated routes. The return values of routes.generate with rails 2.3 and 3.0 are strings, rails 3.1+ returns an array of path and extra keys. This makes the tests usable with all rails versions
* use a full blown test application to test rails 3.x - this is needed for rails 3.2 since it won't run the filters with the bare bones setup used before
* include a ruby 1.9.3 compatiblity fix for testing rails 2.3
* refactor rails_test.rb to use Rack::Test in a way that works on rails 2.3 to 3.2

For the rails 2.3 tests to pass issue #32 needs to be resolved first

To make the rails 3.2 tests pass i'll send a separate pull request.