<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -46,7 +46,7 @@ module Airbrush
             }
           end
 
-          def dimensions(image)
+          def dimensions(image_data)
             image = Magick::Image.from_blob(image_data).first
             return image.columns, image.rows
           end</diff>
      <filename>lib/airbrush/processors/image/rmagick.rb</filename>
    </modified>
    <modified>
      <diff>@@ -47,7 +47,7 @@ describe Airbrush::Processors::Image::Rmagick do
 
     it 'should return the raw image data back to the caller' do
       @rm_image.should_receive(:to_blob).and_return('blob')
-      @processor.resize(@image, 300, 200).should == 'blob'
+      @processor.resize(@image, 300, 200).should == { :image =&gt; &quot;blob&quot;, :height =&gt; 1000, :width =&gt; 1500 }
     end
 
   end
@@ -70,7 +70,7 @@ describe Airbrush::Processors::Image::Rmagick do
 
     it 'should return the raw image data back to the caller' do
       @rm_image.should_receive(:to_blob).and_return('blob')
-      @processor.crop(@image, 10, 10, 100, 100).should == 'blob'
+      @processor.crop(@image, 10, 10, 100, 100).should == { :image =&gt; &quot;blob&quot;, :height =&gt; 1000, :width =&gt; 1500 }
     end
 
   end
@@ -93,7 +93,7 @@ describe Airbrush::Processors::Image::Rmagick do
 
     it 'should return the raw image data back to the caller' do
       @rm_image.should_receive(:to_blob).and_return('blob')
-      @processor.crop_resize(@image, 75, 75).should == 'blob'
+      @processor.crop_resize(@image, 75, 75).should == { :image =&gt; &quot;blob&quot;, :height =&gt; 1000, :width =&gt; 1500 }
     end
 
   end
@@ -107,7 +107,7 @@ describe Airbrush::Processors::Image::Rmagick do
 
     it 'should return the raw image data back to the caller' do
       @rm_image.should_receive(:to_blob).twice.and_return('blob')
-      @processor.previews(@image, { :small =&gt; [200,100], :large =&gt; [500,250] }).should == { :small =&gt; 'blob', :large =&gt; 'blob'}
+      @processor.previews(@image, { :small =&gt; [200,100], :large =&gt; [500,250] }).should == { :small=&gt; { :image =&gt; &quot;blob&quot;, :height =&gt; 1000, :width =&gt; 1500 }, :large=&gt; { :image =&gt; &quot;blob&quot;, :height =&gt; 1000, :width =&gt; 1500 }, :original =&gt; [1500, 1000] }
     end
 
   end</diff>
      <filename>spec/airbrush/processors/image/rmagick_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>493608f58cb4aa4c9c3aab8013f9a484a8b07708</id>
    </parent>
  </parents>
  <author>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </author>
  <url>http://github.com/square-circle-triangle/airbrush/commit/525a02eddcc4de18e52096a619aa5e0ea8742ae2</url>
  <id>525a02eddcc4de18e52096a619aa5e0ea8742ae2</id>
  <committed-date>2008-07-07T21:36:03-07:00</committed-date>
  <authored-date>2008-07-07T21:36:03-07:00</authored-date>
  <message>Fix remaining rmagick processor specs following updates to include image sizes and original image size in remote processed commands


git-svn-id: svn://svn.sct.com.au/image_server/trunk@105 daa9635f-4444-0410-9b3d-b8c75a019348</message>
  <tree>9f9f44a58270a383b7805cc2dd89524e1a29f3be</tree>
  <committer>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </committer>
</commit>
