From 847ea592abb177fb3b2dde21ac2a42ac57117e2b Mon Sep 17 00:00:00 2001 From: Yohta Kimura Date: Thu, 17 Aug 2023 15:42:15 +0900 Subject: [PATCH] delete duplicate tests --- spec/orm/activerecord_spec.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spec/orm/activerecord_spec.rb b/spec/orm/activerecord_spec.rb index 7421b3fe9..814ce876d 100644 --- a/spec/orm/activerecord_spec.rb +++ b/spec/orm/activerecord_spec.rb @@ -904,16 +904,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