context '原画の保存に失敗したとき' do
before do
OriginalPicture.any_instance.stub(:save).with(any_args).and_return(true)
- PictureIO.original_picture_io.stub(:put).with(any_args).and_return(false)
+ PictureIO.original_picture_io.stub(:put).with(any_args).and_raise(PictureIO::Error)
end
it 'falseを返す' do
@op.store(@imager).should be_false