Skip to content

Commit a658c68

Browse files
authored
Merge pull request rails#51921 from zzak/railties-sqlite-non_existent-test
Re-enable railtie non_existent sqlite3 test from rails#51901
2 parents 1b3fc3c + e2adebe commit a658c68

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

railties/test/application/configuration_test.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -2890,12 +2890,11 @@ class Post < ActiveRecord::Base
28902890
assert_equal true, ActiveRecord::ConnectionAdapters::SQLite3Adapter.strict_strings_by_default
28912891

28922892
Post.lease_connection.create_table :posts
2893-
_error = assert_raises(StandardError) do
2893+
error = assert_raises(StandardError) do
28942894
Post.lease_connection.add_index :posts, :non_existent
28952895
end
28962896

2897-
# FIXME: Doesn't work in CI, bug when sprockets-rails is not required.
2898-
# assert_match(/no such column: non_existent/, error.message)
2897+
assert_match(/no such column: "?non_existent"?/, error.message)
28992898
end
29002899

29012900
test "ActiveSupport::MessageEncryptor.use_authenticated_message_encryption is true by default for new apps" do

0 commit comments

Comments
 (0)