mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 13:43:48 +00:00
Added date to tournament
This commit is contained in:
2
test/fixtures/tournaments.yml
vendored
2
test/fixtures/tournaments.yml
vendored
@@ -8,6 +8,7 @@ one:
|
||||
director_email: jacob.wimer@gmail.com
|
||||
tournament_type: Pool to bracket
|
||||
user_id: 1
|
||||
date: 2015-12-30
|
||||
|
||||
two:
|
||||
id: 2
|
||||
@@ -17,5 +18,6 @@ two:
|
||||
director_email: jacob.wimer@gmail.com
|
||||
tournament_type: Pool to bracket
|
||||
user_id: 1
|
||||
date: 2015-12-30
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,8 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
||||
name: "Something",
|
||||
address: "Some Place",
|
||||
director: "Some Guy",
|
||||
director_email: "test@test.com"
|
||||
director_email: "test@test.com",
|
||||
date: Date.today
|
||||
)
|
||||
tournament.save
|
||||
tournament
|
||||
|
||||
@@ -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