review comment tweaks - completes #104
This commit is contained in:
@ -70,5 +70,16 @@ module Admin
|
||||
assert_equal 'ipsum', Candidate.find(henry.to_i).review_comments
|
||||
assert_redirected_to admin_result_url(henry.test_hash)
|
||||
end
|
||||
|
||||
test "approve fails without comment" do
|
||||
auth_user users(:manager)
|
||||
henry = candidates(:henry)
|
||||
|
||||
assert_enqueued_jobs 0 do
|
||||
post admin_interview_url(henry.test_hash), params: { review_status: 'approved' }
|
||||
end
|
||||
assert_match 'comment', flash[:error]
|
||||
assert_redirected_to admin_result_url(henry.test_hash)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user