From f21ba4fb687fe6cc215b2291d48fe93b5fcadf22 Mon Sep 17 00:00:00 2001 From: yasushiito Date: Thu, 27 Sep 2012 08:24:55 +0900 Subject: [PATCH] t#29678:test broken.fix op model --- spec/models/original_picture_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/original_picture_spec.rb b/spec/models/original_picture_spec.rb index 7c82cbf4..73b1f802 100644 --- a/spec/models/original_picture_spec.rb +++ b/spec/models/original_picture_spec.rb @@ -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 -- 2.11.0