Ah I think I've lost all context on this conversation, I'll need to do this at a computer

Envoyé de mon iPhone

> Le Sep 28, 2013 à 9:06 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
> Where automatically filters out deleted objects unless I include .with_deleted.
> 
> test_cases hit the fixtures which has no such logic.
> 
> assigns is a rails thing as far as I know. Its sort of like "Hey you just called [METHOD], it assigns this variable"
> 
> —
> Reply to this email directly or view it on GitHub.