Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

add NullResolver for testing

#4523

In addition to exposing the FixtureResolver (per #4522 expose FixtureResolver so Rails users can use it), 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.

Reported by David Chelimsky · May 2nd, 2010 @ 04:04 PM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: none

Activity

  1. David Chelimsky
    David Chelimsky

    Patch: http://github.com/dchelimsky/rails/commit/5358b04b284315ff0d44dcaa6...

    (built on other patches from #4522 expose FixtureResolver so Rails users can use it - if you like this idea but don't want to include the patches from #4522 expose FixtureResolver so Rails users can use it, I'll be happy to resubmit without that dependency)

    May 2nd, 2010 @ 04:07 PM

  2. David Chelimsky
    David Chelimsky
    • Assigned user set to Yehuda Katz (wycats)

    May 2nd, 2010 @ 04:07 PM

  3. David Chelimsky
    David Chelimsky
    • Assigned user changed from Yehuda Katz (wycats) to Carl Lerche

    May 2nd, 2010 @ 04:07 PM

  4. David Chelimsky
    David Chelimsky
    • Assigned user changed from Carl Lerche to José Valim

    May 2nd, 2010 @ 04:07 PM

  5. David Chelimsky
    David Chelimsky

    FYI - I set Yehuda, Carl and José as responsible so you'd each get pinged. I don't know who should be responsible :)

    May 2nd, 2010 @ 04:08 PM

  6. José Valim
    José Valim
    • Milestone cleared.
    • State changed from new to open

    I'm quite familiar with this part of the code, so I can handle both. :)

    May 2nd, 2010 @ 05:00 PM

  7. Repository
  8. Jeremy Kemper