Skip to content

Commit c30c5d7

Browse files
zzakflavorjones
andcommitted
Fix railtie config test for sqlite 3.46.0
Follow up to rails#51891 This resolves the following test failure: https://buildkite.com/rails/rails/builds/107520#018fa76e-0408-4630-a75d-eac5caa16463/1199-1209 ``` Failure: ApplicationTests::ConfigurationTest#test_SQLite3Adapter.strict_strings_by_default_can_be_configured_via_config.active_record.sqlite3_adapter_strict_strings_by_default_in_an_initializer [test/application/configuration_test.rb:2896]: Expected /no such column: non_existent/ to match "SQLite3::SQLException: no such column: \"non_existent\" - should this be a string literal in single-quotes?". ``` Co-authored-by: Mike Dalessio <[email protected]>
1 parent 213bdfe commit c30c5d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/test/application/configuration_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@ class Post < ActiveRecord::Base
28932893
error = assert_raises(StandardError) do
28942894
Post.lease_connection.add_index :posts, :non_existent
28952895
end
2896-
assert_match(/no such column: non_existent/, error.message)
2896+
assert_match(/no such column: "?non_existent"?/, error.message)
28972897
end
28982898

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

0 commit comments

Comments
 (0)