public function testListAllCandidates()
 {
     $candidate = self::createTestCandidate();
     $candidates = Candidate::all();
     $first_candidate = $candidates[0];
     foreach ($candidate as $key => $value) {
         $this->assertSame($first_candidate->{$key}, $value);
     }
 }
 public function candidates()
 {
     $candidates = Candidate::all();
     return View::make('admin.candidates.view')->withCandidates($candidates);
 }