How do I test Rails block helpers with rSpec
In my views I use a helper that takes arbitrary HTML as a block:

    <% some_block_helper do %>
      Some arbitrary HTML and ERB variables here.
      More HTML here.
    <% end %>

My helper does a bunch of things to the passed block of HTML before rendering it back to the view (Markdown and other formatting). I would like to know what are the cleanest ways of testing the result of the helper call in rSpec, if any. I've found a few examples that muck about with private methods of ERB but that seems a bit brittle and hard to read.
How do I test Rails block helpers with rSpec
===

In my views I use a helper that takes arbitrary HTML as a block:

    <% some_block_helper do %>
      Some arbitrary HTML and ERB variables here.
      More HTML here.
    <% end %>

My helper does a bunch of things to the passed block of HTML before rendering it back to the view (Markdown and other formatting). I would like to know what are the cleanest ways of testing the result of the helper call in rSpec, if any. I've found a few examples that muck about with private methods of ERB but that seems a bit brittle and hard to read.