spec/feature/remove_attachment_spec.rb in saviour-0.6.4 vs spec/feature/remove_attachment_spec.rb in saviour-0.6.5

- old
+ new

@@ -114,10 +114,10 @@ a.remove_file! expect(a.file.persisted?).to be_falsey expect(Saviour::Config.storage.exists?(path)).to be_truthy expect(Saviour::Config.storage.read(path)).to eq "Some contents" - a.update_attributes!(file: Saviour::StringSource.new("Other contents", "filename.txt")) + a.update!(file: Saviour::StringSource.new("Other contents", "filename.txt")) expect(a.file.persisted?).to be_truthy expect(a.file.read).to eq "Other contents" expect(Saviour::Config.storage.exists?(path)).to be_truthy end