Sha256: c5d59e7bcfa62824d06cf5af115fa7b8c4b8f9fea24eb64af6e4ef5f14c4d2c4
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
require "twenty_one/ace_card" include TwentyOne describe AceCard do before(:each) do @ace = AceCard.new :club end it "should have a value of 1 or 11" do expect(@ace.value).to eq(1 || 11) end describe "#use_upper" do it "should use the higher Ace value" do @ace.use_upper expect(@ace.value).to eq(11) end end describe "#use_lower" do it "should use the lower Ace value" do @ace.use_lower expect(@ace.value).to eq(1) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twenty_one-0.1.1 | spec/lib/ace_card_spec.rb |
twenty_one-0.1.0 | spec/lib/ace_card_spec.rb |