Skip to content

Commit

Permalink
Merge pull request #2684 from rajyan/refactor-duplicate-tests
Browse files Browse the repository at this point in the history
delete duplicate tests
  • Loading branch information
mshibuya authored Aug 19, 2023
2 parents 37f36f7 + 847ea59 commit 3a9e5a0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions spec/orm/activerecord_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a9e5a0

Please sign in to comment.