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