candidate creation

This commit is contained in:
Mark Moser
2016-07-31 14:47:15 -05:00
parent 7758f8993c
commit abb3dee9f5
8 changed files with 92 additions and 8 deletions

View File

@ -1,7 +1,12 @@
require 'test_helper'
class CandidateTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
test "test_hash is auto generated" do
candidate = Candidate.create(name: 'new name',
email: 'test@mailinator.com',
experience: '0-3',
quiz_id: quizzes(:fed).id)
assert candidate.test_hash.present?
end
end