semester_test.rb 279 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1 2 3
require 'test_helper'

class SemesterTest < ActiveSupport::TestCase
4
  test 'create fails with no data' do
5 6 7 8 9 10 11 12
    assert_raise do
      Semester.create!(season: nil, year: nil)
    end
  end

  test 'create successful' do
    Semester.create!(season: 'Test', year: 'Test')
  end
Zac Wood's avatar
Zac Wood committed
13
end