diff --git a/spec/orm/activerecord_spec.rb b/spec/orm/activerecord_spec.rb index 747766419..18d8a3957 100644 --- a/spec/orm/activerecord_spec.rb +++ b/spec/orm/activerecord_spec.rb @@ -914,16 +914,6 @@ def filename end expect(File.exist?(public_path('uploads/old.jpeg'))).to be_truthy end - - it 'should remove new file if transaction is rollback' do - Event.transaction do - @event.image = stub_file('new.jpeg') - @event.save - expect(File.exist?(public_path('uploads/new.jpeg'))).to be_truthy - raise ActiveRecord::Rollback - end - expect(File.exist?(public_path('uploads/new.jpeg'))).to be_falsey - end end describe "#mount_uploader into transaction" do