linked into views

This commit is contained in:
Mark Moser
2016-11-18 17:43:24 -06:00
committed by Mark Moser
parent 37aa17ec1f
commit 5845f76e1d
14 changed files with 107 additions and 31 deletions

View File

@ -5,4 +5,30 @@ class ReviewerVoteTest < ActiveSupport::TestCase
test "the truth" do
assert ReviewerVoteTest
end
test "richard has 3 votes" do
richard = candidates(:richard)
assert_equal 3, richard.votes.size
end
test "manager has 4 votes" do
manager = users(:manager)
assert_equal 4, manager.votes.size
end
test "richard has been approved" do
richard = candidates(:richard)
assert richard.approved?
refute richard.declined?
end
test "stacy has been declined" do
stacy = candidates(:stacy)
assert stacy.declined?
refute stacy.approved?
end
end