linked into views

This commit is contained in:
Mark Moser authored and Mark Moser committed 2016-11-19 09:38:28 -06:00
1 parent 37aa17ec1f
commit 5845f76e1d
14 files changed
+107 -31

No files matched your search

+26
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