- post(:create, {'commit' => "Create Quickvote", 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}}, nil, {:candlist => nil})
- assert_template "quickvote/create"
- post(:create, {'commit' => "Create Quickvote", 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}}, nil, {:candlist => []})
- assert_template "quickvote/create"
+ assert_raise(NoMethodError) do
+ post(:create, {'commit' => "Create Quickvote",
+ 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}},
+ nil, {:candidate_names => nil})
+ end
+
+ assert_raise(NoMethodError) do
+ post(:create, {'commit' => "Create Quickvote",
+ 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}},
+ nil, {:candidate_names => []})
+ end