Joshua Peek
14b7452c57
Require info controller from info routes
2010-03-20 13:33:25 -05:00
Joshua Peek
f38e89cfba
Move railties/builtin into lib
2010-03-20 12:34:21 -05:00
wycats
f868c2afa9
response_body is an Array in 1.9, so an Array was being pushed onto the cache
2010-03-19 18:56:06 -07:00
wycats
e1c030edd8
Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack response was a String.
2010-03-19 18:46:29 -07:00
Sam Ruby
80095c54bd
Controller generators should generate tests when action is supplied. [ #3421 state:resolved]
2010-03-20 00:51:56 +01:00
José Valim
525382f638
Clean up Mime::Type and remove deprecated stuff (from 2.3).
2010-03-20 00:28:27 +01:00
wycats
9f92563892
Eliminate an error from an implicit dependency on AV::Base
2010-03-19 11:50:03 -07:00
Carlhuda
7f53dca1a1
Fix protect_against_forgery
2010-03-19 11:11:02 -07:00
José Valim
562154fcbc
Controller generator now creates routes as well [ #4233 state:resolved]
2010-03-19 18:12:54 +01:00
Aaron Patterson
541194f641
switching migrations to use require cleans up many warnings [ #4234 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-19 09:56:22 -07:00
José Valim
ae499b53ef
Merge branch 'master' of gitproxy:rails/rails
2010-03-19 17:23:44 +01:00
José Valim
f28d856cec
Improve performance of the rendering stack by freezing formats as a sign that they shouldn't be further modified.
2010-03-19 17:20:20 +01:00
Xavier Noria
f3743362c2
cleans a bit #compute_public_path
...
[#4232 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-19 07:32:41 -07:00
José Valim
fbe35656a9
Singleton classes returns parent's methods with instance_methods(false) and this makes remove_method in Module#delegate fail. Add a test case and fix the bug.
2010-03-19 12:01:48 +01:00
Sebastian Martinez
b395c81e3c
removed useless require line
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-19 11:08:06 +01:00
wycats
0aa0c37b59
Well that was a bust
2010-03-18 22:55:44 -07:00
wycats
995f57033f
We seem to have removed the URL helpers from ActionView subclasses...
2010-03-18 22:21:25 -07:00
Carlhuda
a5d80f84d2
Each controller class has it's own view context subclass. This removes the need for ActionView::Base.for_controller
2010-03-18 18:14:54 -07:00
Santiago Pastorino
e629e21135
remove duplicated self.view_paths assingment on controller tests [ #4206 state:commited]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-18 17:50:28 -07:00
Santiago Pastorino and Sebastian Martinez
e7276a9f09
Make dependencies_test pass running standalone [ #4215 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-18 17:50:28 -07:00
Santiago Pastorino and Sebastian Martinez
1e2caa5d52
Added missing requires abstract_unit and activesupport to the loadpath of ts_isolated [ #4215 state:committed]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-18 17:50:28 -07:00
Carlhuda
1dacc19702
Return a valid Rack response from bare ActionController::Metal
2010-03-18 17:32:53 -07:00
Carlhuda
edb5991a14
Make render :partial, :layout consistent between AC and AV
2010-03-18 16:55:32 -07:00
Carlhuda
71c9337f45
All tests pass without memoizing view_context
2010-03-18 15:52:43 -07:00
Carlhuda
523d0f3700
Remove caching's dependency on view_context. Also, make it so that the layout is always rendered the same way (so that layout dependencies on the action actually being rendered aren't masked on the first render)
2010-03-18 14:55:29 -07:00
Carlhuda
d8c7efece6
Make action_has_layout? non-private
2010-03-18 14:55:29 -07:00
Carlhuda
3deb60e6b4
@layout is a confusing name... use @cache_layout
2010-03-18 14:55:29 -07:00
Aaron Patterson
587f468282
kill where / having method redefine warnings. [ #4225 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-18 13:30:59 -07:00
wycats
014bd4b287
Merge branch 'master' of github.com:rails/rails
2010-03-18 13:30:52 -07:00
Sebastian Martinez
14b1dc209d
Fixed require line
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-18 11:54:50 -07:00
Carlhuda
8e64998951
While isolated tests are useful, they take far too long to run for us to be getting useful information from CI. Perhaps another box that runs the isolated tests every 3 hours (instead of per commit)
2010-03-18 11:37:04 -07:00
Sebastian Martinez
bc36618ae6
added require abstract_unit on setter_trap.rb
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-18 11:32:51 -07:00
Carlhuda
9da153c2d3
Fix an error in isolated running of tests
2010-03-18 11:31:52 -07:00
snusnu
d164d868b3
AS datetime conversions now require AS time conversions
2010-03-18 10:48:11 -07:00
Aaron Patterson
3911a7c197
squelching more warnings in the AR tests. [ #4218 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-18 10:24:16 -07:00
José Valim
191a2f78b1
Sending the partial as info is no longer required.
2010-03-18 12:12:07 +01:00
Jeremy Kemper
41af6d9a78
Use Array.wrap not Array()
2010-03-17 22:27:48 -07:00
Jeremy Kemper
fe2f383cf3
Fix broken test due to constant collision
2010-03-17 22:27:34 -07:00
Jeremy Kemper
db9e67a6c8
Kill nonexistent method removal
2010-03-17 21:43:01 -07:00
Mathias Biilmann Christensen
c8dd6f224c
Deleting and setting a cookie in the same request was broken
...
Made sure to remove a cookie from @deleted_cookies when set
[#4211 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-17 18:04:32 -07:00
Carlhuda
0e15f07b75
Get modules back into integration tests
2010-03-17 17:52:21 -07:00
Mathias Biilmann Christensen
6c0c0f41a3
Fix for missing dependency in ActionDispatch::Integration
...
When running cucumber features from a new rails 3 app requiring
'cucumber/rails/world' would raise:
uninitialized constant ActionDispatch::Integration::Session::Test (NameError)
Fixed by requiring 'test/unit/assertions' in action_dispatch/integration
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-17 16:53:42 -07:00
Carlhuda
d9375f3f30
Modify assert_template to use notifications. Also, remove ActionController::Base#template since it is no longer needed.
2010-03-17 16:29:35 -07:00
José Valim
7872fa9a43
Merge branch 'master' of gitproxy:rails/rails
2010-03-17 23:47:22 +01:00
José Valim
a6dc227167
Mark bang instrumentations as something that you shuold not be listening to.
2010-03-17 23:44:03 +01:00
snusnu
644219a680
Require AS singleton_class code in AS output_safety
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-17 15:14:35 -07:00
José Valim
21dcbb17de
Ensure json is loaded before using responders.
2010-03-17 23:09:28 +01:00
Carlhuda
6416a35f4b
Remove unneeded AV::Base and AV::Template monkey-patches
2010-03-17 14:29:18 -07:00
Carlhuda
947f86c699
Modify assert_template to use instrumentation
2010-03-17 14:29:18 -07:00
Joshua Peek
13a783672a
Install url helpers on module instance so they can be accessed
...
globally
2010-03-17 16:05:29 -05:00