mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added date to tournament
This commit is contained in:
@@ -4,4 +4,10 @@ class TournamentTest < ActiveSupport::TestCase
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
|
||||
test "Tournament needs a date" do
|
||||
tourney = Tournament.new
|
||||
assert_not tourney.valid?
|
||||
assert_equal [:date], tourney.errors.keys
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user