From 98879c16b908f42d18f4a51c56e09ad5903c55bc Mon Sep 17 00:00:00 2001 From: RJ Osborne Date: Sun, 24 May 2015 20:56:20 -0400 Subject: [PATCH] Make sure the max weight is defined during tests --- test/integration/poolbracket_matchups_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/poolbracket_matchups_test.rb b/test/integration/poolbracket_matchups_test.rb index 86c3b4d..5f803b9 100644 --- a/test/integration/poolbracket_matchups_test.rb +++ b/test/integration/poolbracket_matchups_test.rb @@ -39,7 +39,8 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest def create_weight Weight.new( id: @id, - tournament_id: @id + tournament_id: @id, + max: @id ).save! end