Patches in the assert_elements: Rails view-testing plugin branch "A test suite for assert_elements"
- Remove unused hpricot_test_context.rb
- Add a clone of the assert_select tests, for better coverage. NOTE: This test suite DOES NOT WORK YET.
- Trim out some extra fluff, and add some nested failure tests
- Eradicate the DocumentOutput class; it was unnecesssary.
- Remove AssertElementsMailer from the test suite; it wasn't being used anyway
- A completely running test suite for assert_elements. Includes a fair amount of reworked code, to fit the existing API for assert_select
- Dratted require_gem, intruding into my test suite
- Documentation, moving a method or two under protected, and fixing up the disaster of an argument list I'd left in assert_elements
- Add HTML filtering capabilities to get_elements, so we can gut a chunk of code out of assert_elements and rely on get_elements instead
- Remove AssertElementsMailer from the test suite; it wasn't being used anyway
- Remove the now-unused @block instance var
- Remove the Hpricot caching, because it was doing more harm than good, and the slowdown doesn't seem noticable at this stage.
- Fix a nasty bug involving complex xpath queries
- Make tag() not bomb if it didn't find anything
- Improve the block handling quite a bit, to catch more icky corner cases
- A first, trivial test, to show the general structure of assert_elements tests and to prove that the test suite actually runs