b0VIM 7.4S alexbahamut.local~alex/ruby_apps/blackjack/spec/lib/dealer_spec.rbutf-8 3210#"! UtpKad K{]\JI6$ P("! s * )   m l V U >  j i H G 1 0 n = & % eeeeeeeeeeend end end expect(player.hand.end end end expect(@player.hand.cards.size).to be > 0 @dealer.hit @player it "should add a card to the player's hand" do describe "#hit(player)" do end end expect(result).to eq(:win) result = @dealer.showdown @player @dealer.hit(@dealer) @player.hand.cards.concat [ace_card, Card.new(:spade, 5)] ace_card.use_upper ace_card = AceCard.new :clubs @player.make_bet 100 it "should report a win if the player wins" do end expect(result).to eq(:bust) result = @dealer.showdown @player @dealer.hand.cards.concat [ace_card, Card.new(:clubs, 6)] @dealer.hit @player ace_card.use_upper ace_card = AceCard.new :clubs @player.make_bet 100 it "should report a bust if the player loses" do end expect(result).to eq(:push) result = @dealer.showdown @player @dealer.hand.cards.concat [Card.new(:hearts, 2), Card.new(:clubs, 3)] @player.hand.cards.concat [Card.new(:diamonds, 2), Card.new(:spades, 3)] @player.make_bet 100 it "should push if there is a tie" do describe "#showdown(player)" do end expect(@dealer.shoe.size).to be >= 52 it "should start with a pretty big selection of cards" do end @player = Player.new "Dennis Ritchie" @dealer = Dealer.new "Ken Thompson", shoe end shoe.concat Deck.new.cards 4.times do shoe = [] before(:each) dodescribe Dealer doinclude Blackjackrequire "blackjack/face_card"require "blackjack/ace_card"require "blackjack/card"require "blackjack/deck"require "blackjack/player"require "blackjack/dealer"