+ context 'gif付き画像ファイルの作成・更新に失敗したとき' do
+ before do
+ ProviderOriginalPicture.stub(:replace_original_picture).with(any_args).and_return(true)
+ ProviderOriginalPicture.stub(:replace_artist).with(any_args).and_return(true)
+ ProviderOriginalPicture.stub(:replace_license).with(any_args).and_return(true)
+ PettanImager.stub(:load).with(any_args).and_return(@imager)
+ ProviderOriginalPicture.stub(:modify_resource_picture).with(any_args).and_return(@rp)
+ ResourcePicture.any_instance.stub(:store_picture_with_gif).with(any_args).and_return(false)
+ end
+ it '結果に素材のカラム値を追加している' do
+ r = ProviderOriginalPicture.import_resource_pictures @provider.id, [@attr]
+ r.should_not be_empty
+ end
+ end