From: John Dong Date: Fri, 17 Aug 2007 23:53:12 +0000 (-0400) Subject: Check in a bit of partial work on controller testcases, but I'm calling it a day... X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/58548f03d162cdb794b78aa272a7a3ebf1500f97 Check in a bit of partial work on controller testcases, but I'm calling it a day... --- 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