1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Andrew White 90d2802b71 Add support for other types of routing constraints
This now allows the use of arrays like this:

  get '/foo/:action', to: 'foo', constraints: { subdomain: %w[www admin] }

or constraints where the request method returns an Fixnum like this:

  get '/foo', to: 'foo#index', constraints: { port: 8080 }

Note that this only applies to constraints on the request - path
constraints still need to be specified as Regexps as the various
constraints are compiled into a single Regexp.
2013-01-15 17:21:33 +00:00
..
abstract Remove unnecessary begin..rescue..end, use only rescue 2013-01-06 15:41:14 +09:00
activerecord cleanup, remove trailing whitespace within actionpack 2012-10-27 16:03:18 +02:00
assertions test response assertions 2012-01-06 11:20:26 -08:00
controller Ensure port is set when passed via the process method 2013-01-15 17:21:33 +00:00
dispatch Add support for other types of routing constraints 2013-01-15 17:21:33 +00:00
fixtures Do not generate local vars for partials without object or collection 2013-01-08 09:15:20 -02:00
journey Raise correct exception now Journey is integrated. 2013-01-15 17:21:33 +00:00
lib/controller Add HTML5 input[type="color"] helper 2012-05-21 17:23:48 -03:00
routing add some tests, yay! 2012-02-22 11:05:03 -08:00
template Merge pull request #8938 from colinbm/date_select_value 2013-01-14 12:18:36 -08:00
tmp
abstract_unit.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00
active_record_unit.rb we're not supporting SQLite 2 2012-12-24 12:23:39 +09:00
ts_isolated.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00