Skip to content

Commit 9a263e9

Browse files
authored
Merge pull request rails#42001 from ricardotk002/fix-encrypted-fixtures-test
Fix test `EncryptableFixtureTest` that fails intermittently
2 parents 10f031f + edc481a commit 9a263e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

activerecord/test/cases/encryption/encryptable_record_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def name
242242

243243
# Only run for adapters that add a default string limit when not provided (MySQL, 255)
244244
if EncryptedAuthor.columns_hash["name"].limit
245-
# No column limits in SQLLite
245+
# No column limits in SQLite
246246
test "validate column sizes" do
247247
assert EncryptedAuthor.new(name: "jorge").valid?
248248
assert_not EncryptedAuthor.new(name: "a" * 256).valid?

activerecord/test/cases/encryption/encrypted_fixtures_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
require "models/book_encrypted"
55

66
class ActiveRecord::Encryption::EncryptableFixtureTest < ActiveRecord::EncryptionTestCase
7+
self.use_transactional_tests = false
8+
79
fixtures :encrypted_books, :encrypted_book_that_ignores_cases
810

911
test "fixtures get encrypted automatically" do

0 commit comments

Comments
 (0)