skill-assessment-app/test/models/candidate_test.rb

13 lines
386 B
Ruby
Raw Normal View History

2016-07-26 17:00:00 -05:00
require 'test_helper'
class CandidateTest < ActiveSupport::TestCase
2016-07-31 14:47:15 -05:00
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
2016-07-26 17:00:00 -05:00
end