summaryrefslogtreecommitdiff
path: root/test/models/scoring_criterium_test.rb
blob: 754e8763402365338d394d7a2a689c4af1166d21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
Copyright 2019--2025 Marius PETER