Re: [rspec-users] Drawing the line between controller and integration tests

2012-09-10 Thread Mike Ossareh
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

Re: [rspec-users] Drawing the line between controller and integration tests

2012-09-10 Thread Fearless Fool
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

[rspec-users] Drawing the line between controller and integration tests

2012-09-10 Thread Fearless Fool
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