Re-enable railtie non_existent sqlite3 test from #51901

This commit is contained in:
zzak 2024-05-27 17:34:17 +09:00
parent 1b3fc3c82e
commit e2adebef43
No known key found for this signature in database
GPG Key ID: 213927DFCF4FF102

@ -2890,12 +2890,11 @@ class Post < ActiveRecord::Base
assert_equal true, ActiveRecord::ConnectionAdapters::SQLite3Adapter.strict_strings_by_default
Post.lease_connection.create_table :posts
_error = assert_raises(StandardError) do
error = assert_raises(StandardError) do
Post.lease_connection.add_index :posts, :non_existent
end
# FIXME: Doesn't work in CI, bug when sprockets-rails is not required.
# assert_match(/no such column: non_existent/, error.message)
assert_match(/no such column: "?non_existent"?/, error.message)
end
test "ActiveSupport::MessageEncryptor.use_authenticated_message_encryption is true by default for new apps" do