test/test_winner.rb in sportdb-1.8.5 vs test/test_winner.rb in sportdb-1.8.6

- old
+ new

@@ -3,11 +3,11 @@ require 'helper' class TestWinner < MiniTest::Unit::TestCase def test_1_2 - game = SportDb::Models::Game.new + game = Game.new game.score1 = 1 game.score2 = 2 game.calc_winner assert_equal 2, game.winner90 @@ -16,11 +16,11 @@ assert_equal false, game.winner1? assert_equal false, game.draw? end def test_1_1 - game = SportDb::Models::Game.new + game = Game.new game.score1 = 1 game.score2 = 1 game.calc_winner assert_equal 0, game.winner90 @@ -29,11 +29,11 @@ assert_equal false, game.winner1? assert_equal false, game.winner2? end def test_2_1 - game = SportDb::Models::Game.new + game = Game.new game.score1 = 2 game.score2 = 1 game.calc_winner assert_equal 1, game.winner90 @@ -42,11 +42,11 @@ assert_equal false, game.winner2? assert_equal false, game.draw? end def test_1_1__2_1 - game = SportDb::Models::Game.new + game = Game.new game.score1 = 1 game.score2 = 1 game.score1et = 2 game.score2et = 1 game.calc_winner @@ -57,11 +57,11 @@ assert_equal false, game.winner2? assert_equal false, game.draw? end def test_1_1__2_2__3_5 - game = SportDb::Models::Game.new + game = Game.new game.score1 = 1 game.score2 = 1 game.score1et = 2 game.score2et = 2 game.score1p = 3 @@ -74,10 +74,10 @@ assert_equal false, game.winner1? assert_equal false, game.draw? end def test_1_1_x_3_5 - game = SportDb::Models::Game.new + game = Game.new game.score1 = 1 game.score2 = 1 game.score1et = nil game.score2et = nil game.score1p = 3