Joshua Peek
2be5e088d2
Use new routing dsl in tests
2009-12-08 16:52:26 -06:00
Joshua Peek
48127c637c
Deprecate recalling generation params when the defaults are nil
2009-12-06 20:40:07 -06:00
Joshua Peek
4663f75f6b
Update rackmount to fix some pending tests
2009-12-05 13:10:00 -06:00
Carlhuda
c1304098cc
Reorganize autoloads:
...
* A new module (ActiveSupport::Autoload) is provide that extends
autoloading with new behavior.
* All autoloads in modules that have extended ActiveSupport::Autoload
will be eagerly required in threadsafe environments
* Autoloads can optionally leave off the path if the path is the same
as full_constant_name.underscore
* It is possible to specify that a group of autoloads live under an
additional path. For instance, all of ActionDispatch's middlewares
are ActionDispatch::MiddlewareName, but they live under
"action_dispatch/middlewares/middleware_name"
* It is possible to specify that a group of autoloads are all found
at the same path. For instance, a number of exceptions might all
be declared there.
* One consequence of this is that testing-related constants are not
autoloaded. To get the testing helpers for a given component,
require "component_name/test_case". For instance, "action_controller/test_case".
* test_help.rb, which is automatically required by a Rails application's
test helper, requires the test_case.rb for all active components, so
this change will not be disruptive in existing or new applications.
2009-12-02 20:01:08 -08:00
Joshua Peek
4dee277a9b
Stop escaping "[]" in query string
2009-12-02 12:46:14 -06:00
Jeremy Kemper
de40bc033a
Ensure Cache-Control max-age is an integer
2009-12-02 03:23:00 -08:00
Joshua Peek
7fe19d415a
Make recognize try to constantize controller to see if it exists
2009-12-01 22:22:48 -06:00
Joshua Peek
44587b7fae
Merge branch 'master' of github.com:rails/rails
2009-12-01 14:53:39 -06:00
Joshua Peek
61a31f3d3d
Fix generating params with optional defaults [ #3404 state:resolved]
2009-12-01 14:52:19 -06:00
Jeremy Kemper
0c4990b5f4
Fix caching test to ensure notifications are all delivered
2009-12-01 12:19:42 -08:00
José Valim
6e30361260
Allow ActionController::Responder to have a common entry point for all formats.
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local >
2009-12-01 08:23:43 -08:00
Jeremy Kemper
4f2a04cc08
Notifications: extract central Notifier, cordon off the internal Fanout implementation, and segregate instrumentation concerns
2009-11-28 12:50:09 -08:00
Joshua Peek
59dbae145b
Privatize Routing.possible_controllers and fix brittle url helper
...
controller test loading.
2009-11-23 21:50:21 -06:00
Joshua Peek
350d3daa88
Remove inflection reloads routes test
2009-11-23 19:25:39 -06:00
Jeremy Kemper
f8d06e62a9
Pending test now passing
2009-11-23 14:07:54 -08:00
Joshua Peek
6e67f88a11
Extended and case insensitive regexp routes aren't that important.
...
Mark them as pending till I figure it out.
2009-11-19 17:58:57 -08:00
Jeremy Kemper
0dfd993e77
Fix test bleed
2009-11-18 17:54:27 -08:00
Jeremy Kemper
e1385be025
Extract form_authenticity_param instance method so it's overridable in subclasses
2009-11-17 23:40:06 -08:00
José Valim
2cb47c742f
Split mime responder into smaller chunks and allow action to be configured.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-11-13 09:52:52 -08:00
Jeremy Kemper
8cd486da80
test-unit 2 compat: assert_raise doesn't support regexp second arg to match exception message
2009-11-10 16:14:10 -08:00
Joshua Peek
e9d21ca903
Add pending test for generating routes with optional params that recall last
...
request
2009-11-09 22:18:51 -06:00
Joshua Peek
763489ce06
Add pending test for route generation with default param
2009-11-09 21:54:50 -06:00
Xavier Noria
1979e9c855
Symbol#to_proc is not needed for Ruby >= 1.8.7
2009-11-09 22:16:51 +01:00
Jeremy Kemper
a8ed10546d
Ruby 1.9: don't assume params are US-ASCII. Hands off the encoding.
2009-11-04 16:27:54 -08:00
Jeremy Kemper
425a02cece
Ruby 1.9: resolve constant lookup issues
2009-11-04 15:41:50 -08:00
Jeremy Kemper
0ff8f81adc
Ruby 1.9: more constant lookup badness :(
2009-11-04 15:00:19 -08:00
José Valim
2d514e5352
Move some of helper tests to AbstractController.
2009-11-01 02:23:48 +01:00
Yehuda Katz
51c24ae3e3
Caching refactoring
2009-10-29 00:44:12 -04:00
Joshua Peek
759f2ccc4c
Start migrating AC routing tests into dispatch folder
2009-10-27 21:02:20 -05:00
Yehuda Katz
2bdd8fa863
Clean up parameter logging some
2009-10-26 21:31:37 -07:00
Yehuda Katz
000d593621
Clean up and update cookies
2009-10-26 18:01:09 -07:00
Yehuda Katz
e1786ee6eb
Fixes expires_now and cleans things up a bit
2009-10-26 17:32:42 -07:00
Joshua Peek
a5c82a9dfb
Start rewriting some internal tests to use the new routing dsl
2009-10-20 16:03:55 -05:00
Joshua Peek
a1ce52effc
New routing dsl
2009-10-20 12:31:23 -05:00
Joshua Peek
df68cae0c0
Group together all the old routing dsl logic
2009-10-20 10:46:27 -05:00
Joshua Peek
a74022ecd3
Move Routing into AD
2009-10-20 10:14:46 -05:00
Joshua Peek
3895e2ccb3
Donate tests I wrote for rackmount rails integration
2009-10-20 09:52:59 -05:00
Joshua Peek
a1df259074
Replace decaying routing internals w/ rack-mount
2009-10-19 23:32:17 -05:00
Joshua Peek
6c581f5fd5
Kill routing tests expecting path to be unescaped. Most rack servers already escape PATH_INFO.
2009-10-19 22:42:11 -05:00
Jeremy Kemper
acb1624f27
Merge commit 'josevalim/fixes'
...
Conflicts:
railties/test/generators/app_generator_test.rb
2009-10-19 18:37:19 -07:00
Joshua Peek
91726c201b
Relax generation requirements and only enforce the requirements used in the path segment
2009-10-18 11:05:24 -05:00
Joshua Peek
6873b1d658
Don't use use_controllers in routing tests
2009-10-18 00:26:36 -05:00
Joshua Peek
2c3ca9ae80
This is routing error message test is tightly coupled to the implementation. Just test that it raises an exception.
2009-10-17 21:56:43 -05:00
Joshua Peek
f1767c1513
Drop legacy support for case insensitive controller recognition
2009-10-17 21:21:34 -05:00
Joshua Peek
cc0103fe83
Fix brittle query string comparisons
2009-10-17 19:18:18 -05:00
Joshua Peek
e900a8437a
Fix brittle query string comparisons
2009-10-17 17:35:21 -05:00
Joshua Peek
702df0d238
Fix standalone run of routing test. Only reference controllers that are provided in fake_controllers
2009-10-17 17:35:21 -05:00
Joshua Peek
6c2a73909e
Stop using with_controllers in tests
2009-10-17 17:35:20 -05:00
Joshua Peek
e00f57e208
No longer need this special routing exception message because these kinds of ambiguous generations are deprecated
2009-10-17 17:35:20 -05:00
Joshua Peek
20f0b33035
Drop support for routing :generate_all
2009-10-17 17:35:20 -05:00