- post(:create, {'commit' => "Create Quickvote", 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}}, nil, {:candidate_names => nil})
- assert_template "quickvote/create"
- post(:create, {'commit' => "Create Quickvote", 'quickvote' => {'name' => "has a space", 'description' => "Foobar"}}, nil, {:candidate_names => []})
- 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