Sha256: 67fb794af8e22028e0494706dc119986e0430a7553b06f459de91f0f2d9e1bc4

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

module RubyQuiz1
  describe Deck do

    it "is enumerable" do
      card = double(Card, total_value: 1)
      expect(card).to receive(:total_value)
      subject.cards << card
      subject.each { |c| c.total_value }
    end

    it "calculates its size" do
      subject.cards << double(Card)
      expect(subject.size).to eq 1
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_quiz_1-0.0.2 spec/lib/ruby_quiz_1/deck_spec.rb
ruby_quiz_1-0.0.1 spec/lib/ruby_quiz_1/deck_spec.rb