<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -38,7 +38,24 @@ describe Flickr::Photos::Photo do
         &quot;The last picture from a quite old event. The demolition of the best known hotel in Rzesz&#243;w called Hotel Rzesz&#243;w.&quot;
     end
   end
-  
+
+  describe &quot;.photo_size&quot; do
+    it &quot;should return the appropriate Flickr::Photos::Size instance when requested by symbol&quot; do
+	  @photo.photo_size(:square).class.should == Flickr::Photos::Size
+	  @photo.photo_size(:square).label.should == &quot;Square&quot;
+    end
+
+    it &quot;should return the appropriate Flickr::Photos::Size instance when requested by string&quot; do
+	  @photo.photo_size('square').class.should == Flickr::Photos::Size
+	  @photo.photo_size('square').label.should == &quot;Square&quot;
+    end
+
+    it &quot;should return the :medium Flickr::Photos::Size instance invalidly requested&quot; do
+	  @photo.photo_size(:doubleplusbig).class.should == Flickr::Photos::Size
+	  @photo.photo_size(:doubleplusbig).label.should == &quot;Medium&quot;
+    end
+  end
+
   describe &quot;.image_url&quot; do
     it &quot;should return all standard sizes (thumbnail, square, small, medium and large) when requested&quot; do
 	  @photo.image_url(:square).should == &quot;http://farm4.static.flickr.com/3180/2984637736_9e5762e027_s.jpg&quot;
@@ -120,4 +137,4 @@ describe Flickr::Photos::Photo do
       end
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/flickr/photo_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eccde74c3f7458e222a36d854bcf11dbb279e1e0</id>
    </parent>
  </parents>
  <author>
    <name>Rob Sharp</name>
    <email>rob@sharp.id.au</email>
  </author>
  <url>http://github.com/commonthread/flickr_fu/commit/ffbea35639b9b851e0ba8103685ffdf198874022</url>
  <id>ffbea35639b9b851e0ba8103685ffdf198874022</id>
  <committed-date>2009-07-28T07:57:29-07:00</committed-date>
  <authored-date>2009-07-06T05:39:38-07:00</authored-date>
  <message>Added rspec for photo_size change to Flickr::Photos::Photo

Signed-off-by: CommonThread &lt;hotcommander@commonthread.com&gt;</message>
  <tree>bc07989f9ca956dbf67e34c6e616c63dc29068bc</tree>
  <committer>
    <name>CommonThread</name>
    <email>hotcommander@commonthread.com</email>
  </committer>
</commit>
