[rspec-users] Testing a FormBuilder

David Chelimsky dchelimsky at gmail.com
Mon Jun 22 13:57:54 EDT 2009

On Mon, Jun 22, 2009 at 12:53 PM, Peer Allan<peer at bipolarsoftware.ca> wrote:
> Hello all,
> In a bit of a conundrum here.  I have a custom form builder I am trying to
> test and can't seem to get it to work.  I found this
> http://www.pathf.com/blogs/2007/12/rspec-and-rails/

Things have changed a bit since Dec 07. The helper module is no longer
included directly in the example group, but are exposed through a
helper object instead.

> which helps in that it
> points me to the HelperExampleGroup to get the @template methods I am going
> to need.  The problem is that we have our form builders in their own folder
> (app/form_builders) and hence their own spec folder (spec/form_builders).
>  How can I get the specs in that folder (spec/form_builders) to behave like
> they were helper tests so that I have access to the @template object?
> Thanks
> Peer

describe "thing", :type => :helper do


More information about the rspec-users mailing list