Skip to content
Browse files

fixes failing match spec

  • Loading branch information...
1 parent 5562af5 commit b07ae999c09d16267c850d6c157ae08dd8cf3113 @awilliams committed Dec 17, 2013
Showing with 5 additions and 0 deletions.
  1. +4 −0 lib/rtanque/match.rb
  2. +1 −0 spec/rtanque/match_spec.rb
View
4 lib/rtanque/match.rb
@@ -16,6 +16,10 @@ def initialize(arena, max_ticks = nil, teams = false)
@stopped = false
end
+ def teams=(bool)
+ @teams = bool
+ end
+
def max_ticks_reached?
self.max_ticks && self.ticks >= self.max_ticks
end
View
1 spec/rtanque/match_spec.rb
@@ -28,6 +28,7 @@
end
it 'should be true if two or more bots left w/ same name' do
+ @instance.teams = true
bot1 = double('bot', :name => "bot1")
bot2 = double('bot', :name => "bot1")
@instance.add_bots(bot1, bot2)

0 comments on commit b07ae99

Please sign in to comment.
Something went wrong with that request. Please try again.