diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 5b5b3c23918..0fed877bba7 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -2890,12 +2890,11 @@ module ApplicationTests 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