search for: num_borrowers

Displaying 1 result from an estimated 1 matches for "num_borrowers".

2006 Oct 21
6
test_create gets 200 instead of :success
...#39; end end Setting breakpoints at different places in the above code indicates that my test is going through the rescue section. Here''s the test code: def test_new get :new assert_response :success assert_template ''new'' end def test_create num_borrowers = Borrower.count post :create, :borrower => {:SSN => ''000'', :LastName => ''Anyone''} assert_response :redirect # gets 200 (OK) instead of 302 (Found) assert_redirected_to :action => ''list'' assert_equal ''...