require "test_helper" class ScoringCriteriumTest < ActiveSupport::TestCase def setup @scoring_criterium = scoring_criteria(:one) end test "should be valid with valid attributes" do assert @scoring_criterium.valid? end test "should have category" do @scoring_criterium.category = nil assert_not @scoring_criterium.valid?, "Scoring Criterium has no category." end test "should have name" do @scoring_criterium.name = nil assert_not @scoring_criterium.valid?, "Scoring Criterium has no name." end end