[rspec-devel] view specs (was 'rspec stubbing')

David Chelimsky dchelimsky at gmail.com
Thu Sep 28 07:46:06 EDT 2006


On 9/28/06, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> On 9/28/06, David Chelimsky <dchelimsky at gmail.com> wrote:
> > On 9/27/06, Dave Astels <dastels at daveastels.com> wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > We need to integrate something like this into RSpec:
> > >
> > > http://zentest.rubyforge.org/classes/Test/Rails/ViewTestCase.html
> >
>
> This allows a view to be verified without going through a controller.
> They're just setting variables in the same way a controller would and
> then saying render.
>
> > That's more or less where we're already headed w/ view specs.
>
> Is it really? I thought we had to go through a controller in order to
> verify a view.

Man, you're impatient. Sometimes, when you're on a road, you start at
the beginning of the road.

Separating out the view specs is the first step. The next step is
devise some mojo to get at the views. I hadn't considered helper specs
or partials. That would be even cooler.


More information about the rspec-devel mailing list