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
José Valim
8ae9b05fa0
Make backtrace_cleaner work as expected. Prior to this patch, the Full Trace rarely showed the full trace. Also, increase performance considerably.
2010-05-03 12:59:48 +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
Justin George
731d4392e4
Change event namespace ordering to most-significant first [ #4504 state:resolved]
...
More work still needs to be done on some of these names
(render_template.action_view and render_template!.action_view particularly)
but this allows (for example) /^sql/ to subscribe to all
the various ORMs without further modification
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-02 22:45:54 +02:00
José Valim
a61a6d206b
Speed up I18n helpers in views and add entry to CHANGELOG.
2010-05-01 22:38:57 +02:00
José Valim
13867a3f5f
Use %{} syntax in I18n (faster) instead of {{}}.
2010-05-01 12:54:52 +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
a003a39bac
removing the extra assignment statement [ #4432 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-30 13:20:14 +02: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
José Valim
2e9af3638d
Move several configuration values from Hash to ActiveSupport::XmlMini, which both Hash and Array depends on.
...
Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array.
2010-04-29 12:42:42 +02:00
Jeremy Kemper
fe93cd8bc5
Fix prototype grep depending on JSON encoding regexp as JavaScript regexp
2010-04-27 22:52:37 -07:00
Nathan Weizenbaum
ef5dadaf93
Only run load hooks once a file has been fully loaded.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-27 21:37:40 -07: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
David Chelimsky
176fbfd66f
extract ActionController::TestCase::Behavior
...
- this makes it possible for other test frameworks
to hook into testing facilities provided by Rails
without having to subclass AC::TestCase.
[#4474 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-26 09:52:38 +02: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
David Chelimsky
864bd9c21f
allow unsubscribe by name or subscription [ #4433 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-24 22:06:24 -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
ebf9820f7e
HWIA symbolize_keys now returns a hash so no need to do this anymore
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-22 09:07:53 -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
Santiago Pastorino
961aa70e4a
Some require indifferent_access added
...
Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
2010-04-21 07:45:29 -07:00
Santiago Pastorino
5467728d83
require without .rb
...
Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
2010-04-21 07:41:45 -07:00
wycats
62916ecbbe
It should be possible to render :json with options
2010-04-20 22:29:00 -07:00
José Valim
da32661f10
Remove only formats in shortcuts and do it just once.
2010-04-20 21:19:48 +02:00
Carl Lerche
eb83c9cf42
Merge remote branch 'spastorino/master'
2010-04-18 13:04:04 -07:00
Carl Lerche
d32a4cbaa5
Merge branch 'master' of github.com:rails/rails
2010-04-18 13:02:37 -07:00
Santiago Pastorino
978c80d6e3
Missing require added
2010-04-18 14:02:46 -03:00
Santiago Pastorino
9c4ac84e49
perform_caching should be accessed through the controller here
2010-04-17 23:40:03 -03:00
Santiago Pastorino
4309c1fda3
perform_caching is now delegated to config on instance and class level
2010-04-17 23:40:03 -03: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