OSDN Git Service

t#29678:test broken.fix op model
authoryasushiito <yas@pen-chan.jp>
Wed, 26 Sep 2012 23:24:55 +0000 (08:24 +0900)
committeryasushiito <yas@pen-chan.jp>
Wed, 26 Sep 2012 23:24:55 +0000 (08:24 +0900)
spec/models/original_picture_spec.rb

index 7c82cbf..73b1f80 100644 (file)
@@ -221,10 +221,10 @@ describe OriginalPicture do
     before do
       @op = FactoryGirl.create :original_picture, :artist_id => @artist.id
       OriginalPicture.any_instance.stub(:url).and_return('/original_pictures/3.gif')
-      ResourcePicture.stub(:fix_size_both).with(any_args).and_return([40, 30])
+      PettanImager.stub(:thumbnail_size).with(any_args).and_return([40, 30])
     end
     it 'サムネイル画像の幅高さ取得を依頼している' do
-      ResourcePicture.should_receive(:fix_size_both).with(any_args).exactly(1)
+      PettanImager.should_receive(:thumbnail_size).with(any_args).exactly(1)
       @op.opt_img_tag
     end
     it '戻り値はHashで返す' do