This project is archived and is in readonly mode.
a :partial option in assert_template
-
dust
Apologies - this is the diff I meant to attach
-
josh
- Assigned user set to josh
I'm down for adding support for this, but I have a few concerns.
I'm mainly worried about performance. Tracking these counts hurts a little bit. And this data is only going to be used in tests. So your production env is still doing all this work and throwing it away.
My ideal solution would be to monkey patch the render method when we start a testing env so it wouldn't affect production performance at all.
Also, I really hate @_first_render, if you can knock that out too, that would be awesome.
-
dust
Alrighty, it now patches the tracking stuff in when actionview's test setup stuff is loaded.
-
Repository
- State changed from new to resolved
(from [49306ccacf01e36d444771d42321965616e226f0]) Add :partial option to assert_template [#1550 a :partial option in assert_template state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
