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

- old
+ new

@@ -9,19 +9,19 @@ klass = Class.new(Test) { include Saviour::Model } klass.attach_file :file, uploader with_test_file("example.xml") do |example| a = klass.create! - expect(a.update_attributes(file: example)).to be_truthy + expect(a.update(file: example)).to be_truthy expect(Saviour::Config.storage.exists?(a[:file])).to be_truthy expect(File.dirname(a[:file])).to eq "/store/dir" uploader.class_eval { store_dir { "/another/dir" } } with_test_file("camaloon.jpg") do |example_2| b = klass.create! - expect(b.update_attributes(file: example_2)).to be_truthy + expect(b.update(file: example_2)).to be_truthy expect(Saviour::Config.storage.exists?(b[:file])).to be_truthy expect(Saviour::Config.storage.exists?(a[:file])).to be_truthy expect(File.dirname(b[:file])).to eq "/another/dir"