From 58548f03d162cdb794b78aa272a7a3ebf1500f97 Mon Sep 17 00:00:00 2001 From: John Dong Date: Fri, 17 Aug 2007 19:53:12 -0400 Subject: [PATCH] Check in a bit of partial work on controller testcases, but I'm calling it a day... --- test/functional/quickvote_controller_test.rb | 8 ++++++-- test/functional/site_controller_test.rb | 5 +++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/test/functional/quickvote_controller_test.rb b/test/functional/quickvote_controller_test.rb index d0b37d9..f2b0c2c 100644 --- a/test/functional/quickvote_controller_test.rb +++ b/test/functional/quickvote_controller_test.rb @@ -12,7 +12,11 @@ class QuickvoteControllerTest < Test::Unit::TestCase end # Replace this with your real tests. - def test_truth - assert true + def test_index + get :index + assert_response 302 + end + def test_create_quickvote + end end diff --git a/test/functional/site_controller_test.rb b/test/functional/site_controller_test.rb index 69b9348..ad9f06c 100644 --- a/test/functional/site_controller_test.rb +++ b/test/functional/site_controller_test.rb @@ -12,7 +12,8 @@ class SiteControllerTest < Test::Unit::TestCase end # Replace this with your real tests. - def test_truth - assert true + def test_index + get :index + assert_response :success end end -- 2.39.5