Re: [rspec-users] Why stop using mock_model in scaffold controller spec?

2012-03-29 Thread David Chelimsky
On Tue, Mar 27, 2012 at 9:24 AM, Mike Mazur wrote: > Hi, > > On Tue, Mar 27, 2012 at 22:10, Mike Mazur wrote: >> In May last year, the controller specs generated with `rspec g >> scaffold` were changed to use real model objects instead of >> `mock_model`. >> >> I'm curious why this change was mad

Re: [rspec-users] validating if a cell has any of the options.

2012-03-29 Thread David Chelimsky
On Wed, Mar 28, 2012 at 5:11 PM, Hillary Hueter wrote: > I'm testing the filter on a table. One of the filter options is "Show All". > So for my other tests I've been looping through the rows and seeing if the > table cell that contains the status doesn't include text (cell.should_not == > 'Active

Re: [rspec-users] [rspec-rails] Mailer tests should be similar to Controller tests

2012-03-29 Thread David Chelimsky
On Mon, Mar 26, 2012 at 7:20 PM, Paulo Luis Franchini Casaretto wrote: > Hey, > > When I'm testing a controller, I basically test three things. > Does it assign the variables the view needs? > Does it render the right template? > Does it do whatever the action is supposed to do? > And when testing