spec/mongoid_spec.rb in glebtv-carrierwave-mongoid-0.6.0 vs spec/mongoid_spec.rb in glebtv-carrierwave-mongoid-0.6.1

- old
+ new

@@ -394,11 +394,11 @@ File.exists?(public_path('uploads/new.jpeg')).should be_true File.exists?(public_path('uploads/old.jpeg')).should be_false end it "should not remove old file if old file had a different path but config is false" do - @uploader.stub!(:remove_previously_stored_files_after_update).and_return(false) + @uploader.stub(:remove_previously_stored_files_after_update).and_return(false) @doc.image = stub_file('new.jpeg') @doc.save.should be_true File.exists?(public_path('uploads/new.jpeg')).should be_true File.exists?(public_path('uploads/old.jpeg')).should be_true end @@ -454,11 +454,11 @@ File.exists?(public_path('uploads/new.jpeg')).should be_true File.exists?(public_path('uploads/old.jpeg')).should be_false end it "should not remove old file if old file had a different path but config is false" do - @embedded_doc.image.stub!(:remove_previously_stored_files_after_update).and_return(false) + @embedded_doc.image.stub(:remove_previously_stored_files_after_update).and_return(false) @embedded_doc.image = stub_file('new.jpeg') @embedded_doc.save.should be_true File.exists?(public_path('uploads/new.jpeg')).should be_true File.exists?(public_path('uploads/old.jpeg')).should be_true end @@ -492,10 +492,10 @@ File.exists?(public_path('uploads/new.jpeg')).should be_true File.exists?(public_path('uploads/old.jpeg')).should be_false end it "should not remove old file if old file had a different path but config is false" do - @double_embedded_doc.image.stub!(:remove_previously_stored_files_after_update).and_return(false) + @double_embedded_doc.image.stub(:remove_previously_stored_files_after_update).and_return(false) @double_embedded_doc.image = stub_file('new.jpeg') @double_embedded_doc.save.should be_true File.exists?(public_path('uploads/new.jpeg')).should be_true File.exists?(public_path('uploads/old.jpeg')).should be_true end