Skip to content

Commit

Permalink
Tue Jun 15 12:56:02 2010
Browse files Browse the repository at this point in the history
  • Loading branch information
berinhard committed Jun 15, 2010
1 parent 11c6133 commit 4bf41bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 20100615_ruby_bolao_copa/spec_bolao.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
aposta.pontuacao_resultado(resultado_final).should == 2
end

it 'deve retornar 2 ponto quando acerta time A ganha' do
aposta = Resultado.new(1, 0)
resultado_final = Resultado.new(2, 1)
aposta.pontuacao_resultado(resultado_final).should == 2
end

it '"Mario" nao acerta nada' do
apostador1 = "Mario"
bolao(apostador1, "0x0", "2x1").should == [apostador1, 0]
Expand Down

0 comments on commit 4bf41bf

Please sign in to comment.