David Chelimsky
b3dcbedc67
move assert_template tests to their own test case [ #4501 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-03 13:46:34 +02:00
David Chelimsky
849ab92942
Eliminate false positives when passing symbols to assert_template
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-03 13:46:12 +02:00
Lawrence Pit
9bd91b00b8
Favor %{} in all code instead of (deprecated) {{}} as interpolation syntax for I18n
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-03 13:37:32 +02:00
David Chelimsky
8672a97e11
add NullResolver
...
[#4523 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-02 22:45:54 +02:00
David Chelimsky
a3044967ed
add tests for FixtureResolver
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-02 22:45:54 +02:00
David Chelimsky
91125f9927
move FixtureResolver to a file that is accessible outside Rails' own tests
...
[#4522 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-02 22:45:54 +02:00
Carl Lerche
6c280f3398
RouteSet does not raise ActionController::RoutingError when no routes match anymore. Instead, it follows the X-Cascade convention. ShowExceptions checks for X-Cascade so that the routing error page can still be displayed.
2010-04-30 16:40:42 -07:00
Jeremy Kemper
1d2257deeb
Merge remote branch 'technoweenie/http_token_authentication'
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-30 13:46:37 -07:00
wycats
0fe8827bf3
Merge branch 'master' of github.com:rails/rails
2010-04-30 11:17:58 -07:00
rick
8d236ccb84
add HTTP Token Authorization support to complement Basic and Digest Authorization.
2010-04-30 07:46:30 -07:00
Neeraj Singh
68c96fad55
Fix form builder and form helpers inconsistencies [ #4432 state:resolved]
...
* datetime_select and select_datetime should be consistent as much as possible
* date_select and select_date should be consistent as much as possible
* time_select and select_time should be consistent as much as possible
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-29 13:40:55 +02:00
Neeraj Singh
d793d30776
ActionCachingTestController rescues from all exceptions. Making sure that all the tests check for valid response. [ #4468 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-29 12:48:34 +02:00
wycats
91963e9e33
Merge branch 'master' of github.com:rails/rails
2010-04-26 23:32:30 -07:00
Anil Wadghule
53c13f1aca
Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [ #4477 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-26 11:12:52 -07:00
Cezary Baginski
490a3335d5
Action Pack: fix tests with -K*, work around Ruby 1.9.1 constant lookup.
...
[#4473 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-25 17:00:20 -07:00
Jeremy Kemper
df886c4c89
Missed commit: explicit source encoding
2010-04-24 18:52:51 -07:00
Jeremy Kemper
403752e289
Explicit source encoding
2010-04-24 18:35:12 -07:00
Santiago Pastorino
ed0ca5db9e
Add a test for assert_recognizes on ActionDispatch::IntegrationTest [ #4390 state:committed]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-24 15:43:12 -07:00
Jeremy Kemper
72a3e4b77b
Rename fieldWithErrors style to field_with_errors. Remove unused alert style.
2010-04-24 15:02:12 -07:00
José Valim
aaaa1782b4
Fix render :xml test (ht Simo Niemelä)
2010-04-24 11:48:47 +02:00
Nicolas Sanguinetti
d5d717161d
Allow :remote => false to be passed to link_to
...
And add tests for `button_to` and `form_tag` which currently behave as
expected, so we avoid a regression.
Signed-off-by: wycats <wycats@gmail.com >
2010-04-22 15:29:59 -07:00
Santiago Pastorino
920df0a475
Make ActionDispatch url_for use HWIA symbolize_keys
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-22 09:06:55 -07:00
J Smith
275e839b8d
Ensure that url_for uses symbolized keys in the controller. [ #4391 ]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-22 16:47:36 +02:00
José Valim
81fb742488
Always downstream given options in :json, :xml and :js renderers and add tests for it.
2010-04-22 12:12:38 +02:00
José Valim
4163ccec23
Clean up the config object in ActionPack. Create config_accessor which just delegates to the config object, reducing the number of deprecations and add specific tests.
2010-04-22 12:00:13 +02:00
Santiago Pastorino
a8330c2006
params already has a setted controller and action here
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-21 17:46:37 -07:00
Santiago Pastorino
5c9c30ac65
url_for now works with HashWithIndifferentAccess ht jay [ #4391 state:committed]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-21 17:09:14 -07:00
Carl Lerche
d32a4cbaa5
Merge branch 'master' of github.com:rails/rails
2010-04-18 13:02:37 -07:00
Diego Carrion
8c7e8976e9
added shorthand support for routes like /projects/status(.:format)
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-17 17:53:08 -07:00
David Chelimsky
4327ad51ab
access assigns as a method or hash, with strings or symbols [ #4431 state:resolved]
2010-04-17 15:59:10 -04:00
Aaron Patterson
d4d352bf94
fisting codes so it will parse [ #4430 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-04-17 15:57:36 -04:00
Santiago Pastorino
e85100da0a
Added missing require
2010-04-16 23:44:39 -03:00
Sam Elliott
c16c248912
mail_to with :encode => :javascript now outputs safe html
...
Signed-off-by: Carl Lerche <carllerche@mac.com >
2010-04-16 15:53:55 -07:00
Kieran Pilkington
001ca893c6
Mark the result of grouped_options_for_select as HTML safe [ #4322 state:committed]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-04-16 15:05:41 -07:00
Santiago Pastorino
5699de1d15
Added test get to js should have a header with content-type text/javascript
2010-04-16 11:03:16 -03:00
Santiago Pastorino
8a8da68d1f
Tidy up a bit this test file
2010-04-16 11:03:16 -03:00
Santiago Pastorino
462a7b45f6
Revert "Add test case which check content type when rendering rjs" partial in html template" rendering rjs in html doesn't make sense, it would just output javascript into the template, no script tag
...
This reverts commit dc251389d1 .
2010-04-16 11:03:16 -03:00
Santiago Pastorino and Carl Lerche
0ea434e2f4
Make perform_caching work again, with the tests passing and backward compatible
2010-04-15 18:25:08 -03:00
Craig Davey
5208cc3cf5
Changed translate helper so that it doesn’t mark every translation as safe HTML. Only keys with a "_html" suffix and keys named "html" are considered to be safe HTML. All other translations are left untouched.
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-04-13 17:35:10 -07:00
wycats
8e9df34fa3
Merge branch 'master' of github.com:rails/rails
2010-04-13 14:07:46 -07:00
Stanko Alexander
dc251389d1
Add test case which check content type when rendering rjs partial in html template
...
Signed-off-by: wycats <wycats@gmail.com >
2010-04-13 13:09:41 -07:00
Anil Wadghule
518891f490
Use correct RUBY_PLATFORM regex for Windows env [ #4385 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-13 12:39:03 -07:00
wycats
36f3634a6a
Add a test that used to fail but is fixed now [ #3417 state:resolved]
2010-04-12 21:57:40 -07:00
José Valim
86defed5ad
Fix a bug in url generation for generic routes.
2010-04-12 20:23:35 +02:00
José Valim
a8b1ca26d7
Ensure match path, :controller => name works as expected.
2010-04-12 16:49:41 +02:00
Ryan Bates
e5f392ce8f
fields_for returns block result when outside ERB
...
Signed-off-by: wycats <wycats@gmail.com >
2010-04-11 19:26:00 -07:00
Santiago Pastorino
5b89fd07b2
Make namespace work with options[:to] [ #4351 state:committed]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-11 12:05:43 +02:00
José Valim
ece157e950
Move verification to a plugin as well: http://github.com/rails/verification.git
2010-04-10 11:47:20 +02:00
José Valim
cd79a46174
Remove input, form, error_messages_for and error_message_on from the framework. If you think you will miss them, feel free to use the dynamic_form plugin available at http://github.com/rails/dynamic_form
2010-04-10 10:53:05 +02:00
Jeremy Kemper
7353fc1595
Dial back from 'namespace :controller => ...' to 'scope :module => ...'
2010-04-09 23:09:15 -07:00