skill-assessment-app/test/models/candidate_test.rb
2016-07-31 14:47:15 -05:00

13 lines
386 B
Ruby

require 'test_helper'
class CandidateTest < ActiveSupport::TestCase
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