spec/feature/dirty_spec.rb in saviour-0.6.4 vs spec/feature/dirty_spec.rb in saviour-0.6.5
- old
+ new
@@ -12,10 +12,10 @@
it "provides changes and previous file" do
a = @klass.create!
with_test_file("example.xml") do |xml_file|
with_test_file("camaloon.jpg") do |jpg_file|
- a.update_attributes! file: xml_file
+ a.update! file: xml_file
expect(a.changed_attributes).to eq({})
expect(a.file.exists?).to be_truthy
expect(a.file_changed?).to be_falsey