test/test_rrschedule.rb in rrschedule-0.1.5 vs test/test_rrschedule.rb in rrschedule-0.1.6

- old
+ new

@@ -77,9 +77,16 @@ should "have default teams if non was specified" do schedule = RRSchedule::Schedule.new assert schedule.teams.size > 1 end + + should "not have a team that is specified twice" do + assert_raise RuntimeError do + schedule = RRSchedule::Schedule.new(:teams => %w(a a b c d e f g h i)) + end + + end end context "Any valid schedule" do setup do @s = RRSchedule::Schedule.new(