Sha256: 5f738013a2487bd0def486b46caeec82366f5e97018677d3d75505fa278dc3a7
Contents?: true
Size: 550 Bytes
Versions: 11
Compression:
Stored size: 550 Bytes
Contents
# encoding: utf-8 ### # to run use # ruby -I ./lib -I ./test test/test_match.rb require 'helper' class TestMatch < MiniTest::Test Match = SportDb::Import::Match def test_round m = Match.new( team1: 'Team 1', team2: 'Team 2', round: 3 ) pp m assert_equal 3, m.round assert_nil m.score1 assert_nil m.score2 m = Match.new m.update( round: 4 ) pp m assert_equal 4, m.round end # method test_round end # class TestMatch
Version data entries
11 entries across 11 versions & 1 rubygems