Sha256: b3422094551c0e957639de52616be7b571c60fff1d4ae8505dd27e81040aba91
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
require 'test_helper' require 'game' describe Yahtzee::Game do subject { Yahtzee::Game } describe "first_roll" do it "must roll the dice and return the roll" do subject.first_roll.must_be_kind_of Array end end describe "second_roll(keepers)" do let(:keepers) { [1,2,3] } it "must keep the die they want and reroll the rest" do (subject.second_roll(keepers) & [1,2,3]).must_equal keepers end end describe "third_roll(keepers)" do let(:keepers) { [1,2,3,4] } it "must keep the die they want and reroll the rest" do (subject.third_roll(keepers) & [1,2,3,4]).must_equal keepers end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
functional-yahtzee-0.0.3 | test/unit/game_test.rb |