On Mon, Sep 10, 2012 at 2:51 PM, Fearless Fool wrote:
> I'm trying to understand what belongs -- and what doesn't belong -- in
> controller tests and in integration tests.
>
> As a common example, assume I have a list of named widgets. Somewhere
> in my code, I want to verify that
>
> widget
One addendum: One thing I'd specifically like to know is where/how do
you test the *contents* of generated responses? That seems beyond the
purview of a controller test, but it doesn't require multiple
transactions or cross-controller interactions that would require an
integration test.
--
P
I'm trying to understand what belongs -- and what doesn't belong -- in
controller tests and in integration tests.
As a common example, assume I have a list of named widgets. Somewhere
in my code, I want to verify that
widget = FactoryGirl.create(:widget)
get :index
generates a page that