<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -82,6 +82,10 @@ module Poker
       end
     end
 
+    def to_s
+      cards.map(&amp;:to_s).join ' '
+    end
+
     protected
       def rank
         @rank ||= if straight_flush?: 8</diff>
      <filename>lib/poker/hand.rb</filename>
    </modified>
    <modified>
      <diff>@@ -46,6 +46,23 @@ module Poker
     end
   end
 
+  describe Hand, '#to_s' do
+    it 'should return a a short representation of the cards in the hand' do
+      cards = [
+        Card.new('Hearts', '6'),
+        Card.new('Spades', 'Queen'),
+        Card.new('Diamonds', '4'),
+        Card.new('Clubs', '7'),
+        Card.new('Diamonds', 'Jack'),
+        Card.new('Spades', '8')
+      ]
+      to_s = Hand.new(*cards).to_s
+      cards.each do |card|
+        to_s.match(/(^| )#{card.to_s}( |$)/).should be_true
+      end
+    end
+  end
+
   describe Hand do
     before do
       @straight_flush = Hand.new '6s 5s 9s 7s 8s'</diff>
      <filename>spec/hand_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>39224ab06919d4fe845d8b803791dce5702edc60</id>
    </parent>
  </parents>
  <author>
    <name>Dan Barry</name>
    <email>dan@bakineggs.com</email>
  </author>
  <url>http://github.com/bakineggs/poker/commit/ba853f847374f1c5dca9778fd68e81935357e522</url>
  <id>ba853f847374f1c5dca9778fd68e81935357e522</id>
  <committed-date>2009-10-30T19:49:58-07:00</committed-date>
  <authored-date>2009-10-30T19:49:58-07:00</authored-date>
  <message>Hand#to_s</message>
  <tree>aad7a8a1a0dfc94a232c87f3b1f3603cbbbf26c6</tree>
  <committer>
    <name>Dan Barry</name>
    <email>dan@bakineggs.com</email>
  </committer>
</commit>
