Commit fa0096fb authored by Thong Kuah's avatar Thong Kuah

Fixes rollback not working for AtomicInternalId in decomposed model

parent 18a4fb0a
......@@ -155,7 +155,7 @@ RSpec.shared_examples 'AtomicInternalId' do |validate_presence: true|
end
def expect_iid_to_be_set_and_rollback
ActiveRecord::Base.transaction(requires_new: true) do
instance.transaction(requires_new: true) do
instance.save!
expect(read_internal_id).not_to be_nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment