Merge pull request #2466 from rsim/fix_test_disable_referential_integrity

Fixed test_disable_referential_integrity on Oracle
This commit is contained in:
Aaron Patterson
2011-08-08 12:40:28 -07:00

View File

@@ -151,6 +151,9 @@ class AdapterTest < ActiveRecord::TestCase
else
@connection.execute "INSERT INTO fk_test_has_fk (fk_id) VALUES (0)"
end
# should deleted created record as otherwise disable_referential_integrity will try to enable contraints after executed block
# and will fail (at least on Oracle)
@connection.execute "DELETE FROM fk_test_has_fk"
end
end
end