Do a proper where to filter out the deleted at, and that should work.

Re: assigns. Is "assigns" a method? I guess?

Envoyé de mon iPhone

> Le Sep 28, 2013 à 8:53 PM, Julian Nadeau <notifications@github.com> a écrit :
> 
> In test/functional/test_cases_controller_test.rb:
> 
> > @@ -14,7 +14,8 @@ class TestCasesControllerTest < ActionController::TestCase
> >      get :index, @params
> >      assert_response :success
> >      assert_not_nil assigns(:test_cases)
> > -    assert_equal 2, assigns(:test_cases).count
> > +    assert_equal TestCase.where(('test_category_id=?'), @test_category.id).count, assigns(:test_cases).count
> ^ no idea about the [ ] ... however, test_cases.count will not work anymore. We are including deleted_at objects in the fixtures for testing, so test_cases.count will get those, but will not be in the returned objects.
> 
> —
> Reply to this email directly or view it on GitHub.