X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/905cf65f6b3e8acc894c268c3bf729e7b0c76292..07c4c28f94d7628c0d5c48db810956f680c5f48e:/test/functional/quickvote_controller_test.rb?ds=sidebyside diff --git a/test/functional/quickvote_controller_test.rb b/test/functional/quickvote_controller_test.rb index ee79b3f..fbeb4a5 100644 --- a/test/functional/quickvote_controller_test.rb +++ b/test/functional/quickvote_controller_test.rb @@ -43,19 +43,19 @@ class QuickvoteControllerTest < Test::Unit::TestCase def test_create_quickvote_badname post(:create, {'commit' => "Create Quickvote", 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}}, nil, {:candidate_names => ["foo", "bar", "foobar"]}) - assert_template "quickvote/create" + assert_template "quickvote/_create_sidebar" end def test_create_quickvote_dupe_candidate post(:create, {'commit' => "Create Quickvote", 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}}, nil, {:candidate_names => ["foo", "bar", "bar", "foobar"]}) - assert_template "quickvote/create" + assert_template "quickvote/_create_sidebar" end def test_create_quickvote_nil_candidate post(:create, {'commit' => "Create Quickvote", 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}}, nil, {:candidate_names => nil}) - assert_template "quickvote/create" + assert_template "quickvote/_create_sidebar" post(:create, {'commit' => "Create Quickvote", 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}}, nil, {:candidate_names => []}) - assert_template "quickvote/create" + assert_template "quickvote/_create_sidebar" end def test_get_quickvote_nonexistent