Skip to content

Commit 16d6d2e

Browse files
committed
escape regexp name
1 parent bd099f6 commit 16d6d2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/cases/coerced_tests.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,11 +1765,11 @@ class EnumTest < ActiveRecord::TestCase
17651765
end
17661766

17671767
# Need to remove index as SQL Server considers NULLs on a unique-index to be equal unlike PostgreSQL/MySQL/SQLite.
1768-
coerce_tests! %r{with large number label}
1769-
test "with large number label coerced" do
1768+
coerce_tests! %r{serializable\? with large number label}
1769+
test "serializable? with large number label coerced" do
17701770
Book.connection.remove_index(:books, column: [:author_id, :name])
17711771

1772-
send(:'original_with large number label')
1772+
send(:'original_serializable? with large number label')
17731773
ensure
17741774
Book.where(author_id: nil, name: nil).delete_all
17751775
Book.connection.add_index(:books, [:author_id, :name], unique: true)

0 commit comments

Comments
 (0)