This project is archived and is in readonly mode.
add NullResolver for testing
Reported by David Chelimsky | May 2nd, 2010 @ 04:04 PM | in 3.0.2
In addition to exposing the FixtureResolver (per #4522), a NullResolver that always resolves to a valid template is a very helpful tool for testing extensions that don't know the runtime state of the file system.
This is extracted from rspec-rails, which uses it to optionally test controllers in isolation from the views they render.
Comments and changes to this ticket
-
David Chelimsky May 2nd, 2010 @ 04:07 PM
Patch: http://github.com/dchelimsky/rails/commit/5358b04b284315ff0d44dcaa6...
(built on other patches from #4522 - if you like this idea but don't want to include the patches from #4522, I'll be happy to resubmit without that dependency)
-
David Chelimsky May 2nd, 2010 @ 04:07 PM
- Assigned user set to Yehuda Katz (wycats)
-
David Chelimsky May 2nd, 2010 @ 04:07 PM
- Assigned user changed from Yehuda Katz (wycats) to Carl Lerche
-
David Chelimsky May 2nd, 2010 @ 04:07 PM
- Assigned user changed from Carl Lerche to José Valim
-
David Chelimsky May 2nd, 2010 @ 04:08 PM
FYI - I set Yehuda, Carl and José as responsible so you'd each get pinged. I don't know who should be responsible :)
-
José Valim May 2nd, 2010 @ 05:00 PM
- Milestone cleared.
- State changed from new to open
I'm quite familiar with this part of the code, so I can handle both. :)
-
Repository May 2nd, 2010 @ 09:51 PM
- State changed from open to resolved
(from [8672a97e11b1a3697b0147b83fd1f812395997a1]) add NullResolver
[#4523 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/8672a97e11b1a3697b0147b83fd1f8...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Referenced by
- 4523 add NullResolver for testing [#4523 state:resolved]