Sha256: 908943cc15cf2e58d552f90fc802460fe9748cf84641a39725bb15cd0a1a2e7b

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

require "spec_helper"
require "hand"
describe "CPU" do
  s = Hand.new
  s.cards = [Card.new("King", Card::Spades), Card.new("Joker"), Card.new(2, Card::Diamonds)]
  describe "test" do
    tests = proc {|index| test(s.cards[index], 50, nil)}
    v1 = tests.call 0
    v2 = tests.call 1
    v3 = tests.call 2
    describe v1 do
      it {is_expected.to be > v2}
      it {is_expected.to be > v3}
    end
  end
end
describe Hand do
	describe "#new" do
		describe "#cards" do
			subject {Hand.new.cards}
			describe "#length" do
				subject {Hand.new.cards.length}
				it {is_expected.to be 3}
			end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
99_game-2.1.0 spec/lib/hand_spec.rb