spec/adapter_spec.rb in carrierwave-base64-2.0 vs spec/adapter_spec.rb in carrierwave-base64-2.1
- old
+ new
@@ -15,9 +15,10 @@
it "handles normal file uploads" do
sham_rack_app = ShamRack.at('www.example.com').stub
sham_rack_app.register_resource("/test.jpg", file_path("fixtures", "test.jpg"), "images/jpg")
subject[:image] = "test.jpg"
+ expect(subject.changed?).to be_truthy
subject.save!
subject.reload
expect(subject.image.current_path).to eq file_path("../uploads", "test.jpg")
end