- old_len=invoke_delegated(:vote,:list_quickvotes).length
- result = invoke_delegated :vote, :create_quickvote, election
- assert_equal result, ""
- reflection = invoke_delegated :vote, :get_quickvote, election.name
- assert_equal election.description, reflection.description
- assert_equal 0, election.name.casecmp(reflection.name)
- assert_equal election.candidate_names, reflection.candidate_names
- assert_equal(invoke_delegated(:vote,:list_quickvotes).length, old_len+1)
+ old_len = invoke_delegated(:vote, :list_quickvotes).length
+ result = invoke_delegated(:vote, :create_quickvote, election)
+ assert_equal(result, "")
+
+ reflection = invoke_delegated(:vote, :get_quickvote, election.name)
+ assert_equal(election.description, reflection.description)
+ assert_equal(0, election.name.casecmp(reflection.name))
+ assert_equal(election.candidate_names, reflection.candidate_names)
+ assert_equal(invoke_delegated(:vote, :list_quickvotes).length, old_len+1)