Skip to content

Commit 6a61ca3

Browse files
authored
Merge pull request rails#27993 from koic/fix_test_ar_value_too_long_using_oracle
Fix a tests of AR::ValueTooLong when using OracleAdapter
2 parents b3110f4 + 0f50538 commit 6a61ca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/test/cases/validations/uniqueness_validation_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def test_validate_uniqueness_with_limit
372372

373373
e2 = Event.create(title: "abcdefgh")
374374
assert_not e2.valid?, "Created an event whose title is not unique"
375-
elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :SQLServerAdapter)
375+
elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :OracleAdapter, :SQLServerAdapter)
376376
assert_raise(ActiveRecord::ValueTooLong) do
377377
Event.create(title: "abcdefgh")
378378
end
@@ -391,7 +391,7 @@ def test_validate_uniqueness_with_limit_and_utf8
391391

392392
e2 = Event.create(title: "一二三四五六七八")
393393
assert_not e2.valid?, "Created an event whose title is not unique"
394-
elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :SQLServerAdapter)
394+
elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :OracleAdapter, :SQLServerAdapter)
395395
assert_raise(ActiveRecord::ValueTooLong) do
396396
Event.create(title: "一二三四五六七八")
397397
end

0 commit comments

Comments
 (0)