Emilio Tagua
dc2cd266cd
Rename tests to avoid name collisions and warnings when running rake task.
2010-09-28 15:30:59 -03:00
Emilio Tagua
f63f90134a
Rename duplicated test, and give it a correct name. Remove nonsense line.
2010-09-28 15:30:16 -03:00
Emilio Tagua
dc61ab0be5
Remove duplicated test.
2010-09-28 15:29:59 -03:00
Emilio Tagua
1ab2ab07b5
Remove more warnings shadowing outer local variable.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-27 16:43:17 -03:00
Emilio Tagua
bb71f182dd
Rename duplicated test name.
2010-09-27 11:19:24 -03:00
Emilio Tagua
583ddf22a2
Remove more warnings shadowing outer local variable.
2010-09-27 11:19:22 -03:00
Emilio Tagua
0cb1d87cd5
Remove duplicated test.
2010-09-27 11:19:22 -03:00
Emilio Tagua
535371e956
Fix indentation.
2010-09-27 11:19:19 -03:00
Emilio Tagua
2d274a5208
Use parentheses when using assert_match followed by a regexp to avoid warnings.
2010-09-27 11:19:19 -03:00
Carlos Antonio da Silva
6345899489
Remove last tests with deprecated form_for and cleanup form_for helper
...
This cleans up the last bits of deprecation stuff from form_for helper.
However there is still a bug when using :as => foo[], with index. The
classes and ids are being generated using [], such as foo[]_edit. This
bug already existed but it was not detected before.
2010-09-26 02:13:47 +08:00
Carlos Antonio da Silva
db57e92784
Select tags with array options are deprecated, removing
2010-09-26 02:13:46 +08:00
Carlos Antonio da Silva
8a16485a96
Review most of the form_for deprecated tests, missing tests with index like []
2010-09-26 02:13:45 +08:00
Carlos Antonio da Silva
7fc1edd790
Remove deprecated stuff in ActionController
...
This removes all deprecated classes in ActionController related to
Routing, Abstract Request/Response and Integration/IntegrationTest.
All tests and docs were changed to ActionDispatch instead of ActionController.
2010-09-26 02:13:45 +08:00
Carlos Antonio da Silva
ff3f55ee58
There is no need to open AC::Base three times to setup tests.
2010-09-26 02:13:44 +08:00
Krekoten' Marjan
8639c10a40
Fix logging when cache key contains % sign [ #5570 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 11:04:20 +02:00
Krekoten' Marjan
da94d0e8ca
Remove duplicate helper method
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 11:02:46 +02:00
John Firebaugh
c509379923
Add ActionDispatch::TestResponse tests.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 10:52:57 +02:00
Emilio Tagua
f625b87f24
These tests shouldn't depend on local time to pass or fail, we can use utc here.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 15:51:29 +02:00
Nando Vieira
7223fe7faf
Make redirect_to accept blocks [ #5643 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 12:49:27 +02:00
Santiago Pastorino
0523b55ab9
file_field propagates up multipart property even inside of fields_for
2010-09-20 01:11:55 -07:00
Santiago Pastorino
88a82bcb2d
application.js should be the last file on javascript_include_tag(:all)
2010-09-19 14:41:32 -07:00
Thiago Pradi
3c9bf6e1dc
Exception handling more readable
...
[#5601 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-19 12:18:51 -07:00
Aaron Patterson
2d65ff5af7
removing some warnings
2010-09-18 14:14:46 -07:00
Aaron Patterson
38f6533792
argument error is done for us
2010-09-18 14:00:00 -07:00
Santiago Pastorino
b17b980a15
file_field makes the enclosing form multipart
2010-09-18 12:31:00 -07:00
Maxim Chernyak
20685d07ab
Fix header capitalization by explicitly upcasing first letter of every word, and avoiding capitalize. [ #5636 state:resolved]
2010-09-18 20:49:51 +02:00
Andrew White
0bffd7d933
Raise ArgumentError instead of normalizing controller name when there is a leading slash [ #5651 state:resolved]
2010-09-18 17:49:46 +01:00
Andrew White
013ed1c050
Remove leading slash from controller [ #5651 state:resolved]
2010-09-18 13:32:54 +01:00
Carl Lerche
7418a44096
Add RouteSet#append
...
Allows specifying blocks to the routeset that will get appended after the RouteSet is drawn.
2010-09-17 12:05:40 -07:00
Xavier Noria
0207bc7cc9
get csrf_meta_tag back to the generated layout in deference to existing printed material, chomp also the generated HTML to be faithful to the output before the refactor
2010-09-14 01:35:44 +02:00
W. Andrew Loe III
9cd094b8da
Only send secure cookies over SSL.
2010-09-13 15:11:46 -07:00
Carl Lerche
84d0c30cea
Allow view helper's #initialize method to be called. [ #5061 state:resolved]
2010-09-13 12:51:42 -07:00
Collin Miller
96650f704a
added block arguments to ActionController::Metal#use
...
Useful for cases such as warden, where a block configuration is taken.
class SomeController < ApplicationController
use RailsWarden::Manager do |manager|
manager.default_strategies :facebook_oauth
manager.failure_app = SomeController.action(:authorize)
end
end
2010-09-12 07:35:54 +08:00
Xavier Noria
a87b92db7b
revises implementation and documentation of csrf_meta_tags, and aliases csrf_meta_tag to it for backwards compatibilty
2010-09-11 11:05:00 +02:00
wycats
f6153f74da
Merge remote branch 'drogus/engines'
2010-09-11 03:24:50 -05:00
Simon Jefford
7fae0aa4ac
Add configuration option for tld length
2010-09-09 18:26:35 -07:00
Piotr Sarnacki
6258f7c972
Change app to main_app in mounted_helpers
2010-09-08 19:27:59 +02:00
Piotr Sarnacki
18aee33335
Do not require passing :app to mounted helpers, it's actually useless and not DRY
2010-09-08 19:27:59 +02:00
Carlos Antonio da Silva
c915ddd386
Start cleanup of deprecations in ActionView
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 13:42:46 +02:00
Carlos Antonio da Silva
022fd876bb
Cleanup Action Dispatch assertions tests
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 13:42:11 +02:00
Carlos Antonio da Silva
9532d746a9
Cleanup deprecations in Action Dispatch
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 13:41:12 +02:00
Carlos Antonio da Silva
11fccc5f06
Cleanup deprecation warnings in Action Controller
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 13:40:45 +02:00
José Valim
8a3461b8c1
Remove a few tests from old router that do not make sense with the new one.
2010-09-05 15:59:35 +02:00
José Valim
9757bfff9b
Merge remote branch 'drogus/remove_deprecated_routes'
...
This merge removes the deprecated routes mapper from Rails and update its tests.
2010-09-05 15:45:12 +02:00
Santiago Pastorino
e20012b64b
Make number_to_human and number_with_precision work with negatives
2010-09-05 10:21:55 -03:00
Santiago Pastorino
d717ff9e52
Fix indentation errors
2010-09-05 10:07:37 -03:00
Ben Sharpe
b80cf265be
Fix number_to_human(0) exception [ #5532 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-05 09:56:13 -03:00
Piotr Sarnacki
e909afccc9
Deleted test with extended regexp - it fails with no reason, probably rack-mount is doing something weird with that regexp
2010-09-05 13:44:39 +02:00
Łukasz Strzałkowski
5b550523b7
Fixed 2 broken tests for router.
...
They were broken after rebase/merge
2010-09-05 13:44:39 +02:00
Łukasz Strzałkowski
8f2c0bf1a0
This test is invalid for new router
2010-09-05 13:44:39 +02:00