OSDN Git Service

t#30220:i18n system error message
[pettanr/pettanr.git] / spec / models / original_picture_spec.rb
index 18ed1c4..28b8119 100644 (file)
@@ -655,7 +655,7 @@ describe OriginalPicture do
     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